UnityEditor.ShaderForgeInspector.ShowShaderProperties C# (CSharp) Method

ShowShaderProperties() private method

private ShowShaderProperties ( Shader s ) : void
s UnityEngine.Shader
return void
        private void ShowShaderProperties(Shader s)
        {
                GUILayout.Space(5f);
                GUILayout.Label("Properties:", EditorStyles.boldLabel, new GUILayoutOption[0]);
                int propertyCount = ShaderUtil.GetPropertyCount(s);
                for (int i = 0; i < propertyCount; i++)
                {
                        string propertyName = ShaderUtil.GetPropertyName(s, i);
                        string label = GetPropertyType(s, i) + ShaderUtil.GetPropertyDescription(s, i);
                        EditorGUILayout.LabelField(propertyName, label, new GUILayoutOption[0]);
                }
        }