Esempio n. 1
0
        public static bool IsMaterialEditorEnabled(Shader shader)
        {
            MaterialEditorDescriptor descriptor = GetEditorDescriptor(shader);

            if (descriptor != null)
            {
                return(descriptor.Enabled);
            }

            return(false);
        }
Esempio n. 2
0
        public static GameObject GetMaterialEditor(Shader shader, bool strict = false)
        {
            MaterialEditorDescriptor descriptor = GetEditorDescriptor(shader);

            if (descriptor != null)
            {
                return(descriptor.Editor);
            }

            if (strict)
            {
                return(null);
            }

            return(m_defaultMaterialEditor);
        }