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
Shader "Custom/SeeThrough" | |
{ | |
Properties | |
{ | |
[HideInInspector] | |
_MainTex ("Sprite Texture", 2D) = "white" {} | |
_GhostColor ("See-through Color", Color) = (0.2, 0.2, 0.2, 1) | |
} | |
SubShader |
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 UnityEditor; | |
[InitializeOnLoad] | |
public class UnrealSimulator : Editor | |
{ | |
private static GUIStyle style = null; | |
private const string text = "LIGHTING NEEDS TO BE REBUILT (4 unbuilt object(s))"; | |
private const string subtext = "'DisableAllScreenMessages' to suppress"; |
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; | |
[ExecuteAlways] | |
[RequireComponent(typeof(AreaEffector2D))] | |
public class AreaEffector2DVisualizer : MonoBehaviour | |
{ | |
public float length = 5f; | |
public float arrowSize = 1f; | |
public Color color = new Color(1f, .5f, 0f); | |