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
//Copy-paste me in a script file named "TerrainColorImporter" and place it in any folder called "Editor" | |
using UnityEngine; | |
using UnityEditor; | |
using UnityEditor.AssetImporters; | |
using System.IO; | |
[ScriptedImporter(1, FILE_EXTENSION)] | |
public class TerrainColorImporter : ScriptedImporter | |
{ |
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
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
using UnityEngine; | |
using UnityEngine.Rendering; | |
[ExecuteInEditMode] | |
public class LightCircle : MonoBehaviour { | |
[Header("Lights")] |
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.Generic; | |
using UnityEngine; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
[ExecuteInEditMode] | |
public class GlobalShaderParams : MonoBehaviour | |
{ |
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 UnityEngine; | |
using UnityEngine.Serialization; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
public class RopeGenerator : MonoBehaviour | |
{ | |
public Rigidbody attachementBody; |
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 UnityEngine.U2D; | |
[ExecuteInEditMode] | |
public class SpriteWaterShape : MonoBehaviour | |
{ | |
public SpriteShapeController controller; |
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 UnityEngine; | |
using Cinemachine; | |
using Waypoint = Cinemachine.CinemachineSmoothPath.Waypoint; | |
public class CinemachinePathShape : MonoBehaviour | |
{ | |
public CinemachineSmoothPath path; | |
[Space] |
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 UnityEngine; | |
[ExecuteInEditMode] | |
public class CreatePlaneStack : MonoBehaviour | |
{ | |
public MeshFilter meshFilter; | |
[Range(1, 64)] | |
public int layers = 4; | |
[Space] |
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
// Staggart Creations | |
// http://staggart.xyz | |
using UnityEngine; | |
[ExecuteInEditMode] | |
public class HeightmapToMesh : MonoBehaviour | |
{ | |
public MeshFilter meshFilter; | |
public Texture2D heightmap; |
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; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
using UnityEngine; | |
[ExecuteInEditMode] | |
public class WorldSpaceTexel : MonoBehaviour | |
{ |