View UE4ClearCache.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
set dt=%DATE:~6,4%.%DATE:~3,2%.%DATE:~0,2%-%TIME:~0,2%.%TIME:~3,2%.%TIME:~6,2% | |
set dtstamp=%dt: =0% | |
set projectPath="" | |
set projectName="" | |
setlocal enableDelayedExpansion | |
set /a ID=0 |
View TerrainSounds.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using System.Linq; | |
public class TerrainSounds : MonoBehaviour | |
{ | |
public Terrain terrain; | |
public List<TerrainTexDef> terrainLayers = new List<TerrainTexDef>(); |
View SimpleMovement.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class SimpleMovement : MonoBehaviour | |
{ | |
public float mainSpeed = 100.0f; //regular speed | |
float shiftAdd = 250.0f; //multiplied by how long shift is held. Basically running | |
float maxShift = 1000.0f; //Maximum speed when holdin gshift | |
float camSens = 0.25f; //How sensitive it with mouse |
View SimpleFollowScript.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class SimpleFollowScript : MonoBehaviour | |
{ | |
public bool followPosition = true; | |
public bool followRotation = true; |
View SimpleLightFlicker.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Aaron Trotter aarontrotter.co.uk 2019 | |
// Free to use and modify. | |
// Do give credit where credit due. | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class SimpleLightFlicker : MonoBehaviour | |
{ |