Пример #1
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.PushShowProperty(show);
        }
Пример #2
0
        public override void OnGUI()
        {
            bool show = ExpressionParser.EvaluateExpression(expression, EvaluatePropertyExpression);

            MaterialInspector.PushShowProperty(show);
        }
Пример #3
0
 internal class GC_EndIf : GUICommand { public override void OnGUI()
                                        {
                                            MaterialInspector.PopShowProperty();
                                        }