Exemplo n.º 1
0
            public override void OnGUI()
            {
                bool invertCondition = !MaterialInspector_Hybrid.ShowNextProperty;

                MaterialInspector_Hybrid.PopShowProperty();
                MaterialInspector_Hybrid.PushShowProperty(invertCondition);
            }
Exemplo n.º 2
0
            public override void OnGUI()
            {
                bool show = MaterialInspector_Hybrid._isURP;

                if (!needUrp)
                {
                    show = !show;
                }
                MaterialInspector_Hybrid.PushShowProperty(show);
            }
Exemplo n.º 3
0
            public override void OnGUI()
            {
                bool show = ExpressionParser.EvaluateExpression(expression, (string s) =>
                {
                    foreach (var m in materials)
                    {
                        if (m.IsKeywordEnabled(s))
                        {
                            return(true);
                        }
                    }
                    return(false);
                });

                MaterialInspector_Hybrid.PushShowProperty(show);
            }
Exemplo n.º 4
0
            public override void OnGUI()
            {
                bool show = ExpressionParser.EvaluateExpression(expression, EvaluatePropertyExpression);

                MaterialInspector_Hybrid.PushShowProperty(show);
            }
Exemplo n.º 5
0
 internal class GC_EndIfDisable : GUICommand { public override void OnGUI()
                                               {
                                                   MaterialInspector_Hybrid.PopDisableProperty();
                                               }
Exemplo n.º 6
0
            public override void OnGUI()
            {
                bool enable = ExpressionParser.EvaluateExpression(expression, EvaluatePropertyExpression);

                MaterialInspector_Hybrid.PushDisableProperty(!enable);
            }