Наследование: AssetImporterInspector
Пример #1
0
        public override void OnInspectorGUI()
        {
            ShaderImporter shaderImporter = base.target as ShaderImporter;

            if (!(shaderImporter == null))
            {
                Shader shader = shaderImporter.GetShader();
                if (!(shader == null))
                {
                    if (ShaderImporterInspector.GetNumberOfTextures(shader) != this.propertyNames.Count)
                    {
                        this.ResetValues();
                    }
                    this.ShowDefaultTextures();
                    base.ApplyRevertGUI();
                }
            }
        }
        public override void OnInspectorGUI()
        {
            ShaderImporter target = this.target as ShaderImporter;

            if ((UnityEngine.Object)target == (UnityEngine.Object)null)
            {
                return;
            }
            Shader shader = target.GetShader();

            if ((UnityEngine.Object)shader == (UnityEngine.Object)null)
            {
                return;
            }
            if (ShaderImporterInspector.GetNumberOfTextures(shader) != this.propertyNames.Count)
            {
                this.ResetValues();
            }
            this.ShowDefaultTextures();
            this.ApplyRevertGUI();
        }