Пример #1
0
        void DrawProcessorInspector()
        {
            if (!m_ProcessorList.HasSelection())
            {
                return;
            }
            var processor = (ShaderProcessor)m_ProcessorList.GetArrayElement(m_ProcessorList.index)?.objectReferenceValue;

            if (processor != null)
            {
                EditorGUILayout.Space();
                EditorGUILayout.LabelField(processor.GetType().GetFriendlyName() + " Processor Settings", EditorStyles.boldLabel);
                Editor.CreateCachedEditor(processor, null, ref m_CachedProcessorEditor);
                m_CachedProcessorEditor.OnInspectorGUI();
            }

            EditorGUILayout.Space();
        }