This file contains hidden or 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 "Sprites/GlowLevels" | |
| { | |
| Properties | |
| { | |
| [PerRendererData] _MainTex("Sprite Texture", 2D) = "white" {} | |
| _AlphaIntensity_Fade_1("_AlphaIntensity_Fade_1", Range(0, 3)) = 1 | |
| _TintRGBA_Color_1("_TintRGBA_Color_1", COLOR) = (1,1,1,1) | |
| _AlphaIntensity_Fade_2("_AlphaIntensity_Fade_2", Range(0, 3)) = 1 | |
| _TintRGBA_Color_2("_TintRGBA_Color_2", COLOR) = (1,1,1,1) |
This file contains hidden or 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
| public class MyBehavior : MonoBehaviour { | |
| // This will store the string value | |
| [StringInList("Cat", "Dog")] public string Animal; | |
| // This will store the index of the array value | |
| [StringInList("John", "Jack", "Jim")] public int PersonID; | |
| // Showing a list of loaded scenes | |
| [StringInList(typeof(PropertyDrawersHelper), "AllSceneNames")] public string SceneName; | |
| } |
This file contains hidden or 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
| // The MIT License (MIT) - https://gist.github.com/bcatcho/1926794b7fd6491159e7 | |
| // Copyright (c) 2015 Brandon Catcho | |
| using System; | |
| // Place this file in any folder that is or is a descendant of a folder named "Scripts" | |
| namespace CatchCo | |
| { | |
| // Restrict to methods only | |
| [AttributeUsage(AttributeTargets.Method)] | |
| public class ExposeMethodInEditorAttribute : Attribute |
This file contains hidden or 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
| //Copyright (c) 2014 Tilman Schmidt (@KeyMaster_) | |
| //Permission is hereby granted, free of charge, to any person obtaining a copy | |
| //of this software and associated documentation files (the "Software"), to deal | |
| //in the Software without restriction, including without limitation the rights | |
| //to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| //copies of the Software, and to permit persons to whom the Software is | |
| //furnished to do so, subject to the following conditions: | |
| //The above copyright notice and this permission notice shall be included in |