@@ -11,22 +11,22 @@ public class EmojiShaderGUI : ShaderGUI
11
11
12
12
public override void OnGUI ( UnityEditor . MaterialEditor materialEditor , UnityEditor . MaterialProperty [ ] properties )
13
13
{
14
- // base.OnGUI(materialEditor, properties);
14
+ //// base.OnGUI(materialEditor, properties);
15
15
16
- Material targetMat = materialEditor . target as Material ;
16
+ // Material targetMat = materialEditor.target as Material;
17
17
18
- // see if redify is set, and show a checkbox
19
- bool redify = Array . IndexOf ( targetMat . shaderKeywords , "EMOJI_ANIMATION" ) != - 1 ;
20
- EditorGUI . BeginChangeCheck ( ) ;
21
- redify = EditorGUILayout . Toggle ( "Emoji Animation" , redify ) ;
22
- if ( EditorGUI . EndChangeCheck ( ) )
23
- {
24
- // enable or disable the keyword based on checkbox
25
- if ( redify )
26
- targetMat . EnableKeyword ( "EMOJI_ANIMATION" ) ;
27
- else
28
- targetMat . DisableKeyword ( "EMOJI_ANIMATION" ) ;
29
- }
18
+ //// see if redify is set, and show a checkbox
19
+ // bool redify = Array.IndexOf(targetMat.shaderKeywords, "EMOJI_ANIMATION") != -1;
20
+ // EditorGUI.BeginChangeCheck();
21
+ // redify = EditorGUILayout.Toggle("Emoji Animation", redify);
22
+ // if (EditorGUI.EndChangeCheck())
23
+ // {
24
+ // // enable or disable the keyword based on checkbox
25
+ // if (redify)
26
+ // targetMat.EnableKeyword("EMOJI_ANIMATION");
27
+ // else
28
+ // targetMat.DisableKeyword("EMOJI_ANIMATION");
29
+ // }
30
30
}
31
31
}
32
32
0 commit comments