-
-
Save arknano/fa6ab7db4fa4c27686243dacee3b0acf to your computer and use it in GitHub Desktop.
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
//This file must go in Assets/Editor to function! | |
using UnityEngine; | |
using System.Collections; | |
using UnityEditor; | |
[CustomEditor(typeof(SetVolumeAlpha))] | |
public class SetVolumeAlphaEditor : Editor | |
{ | |
public override void OnInspectorGUI() | |
{ | |
DrawDefaultInspector(); | |
SetVolumeAlpha myScript = (SetVolumeAlpha)target; | |
if (GUILayout.Button("Set Alpha (Chunk Refresh required)")) | |
{ | |
myScript.SetAlpha(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment