UnityEditor.ShaderUtil.GetPropertyDescription C# (CSharp) Method

GetPropertyDescription() private method

private GetPropertyDescription ( Shader s, int propertyIdx ) : string
s UnityEngine.Shader
propertyIdx int
return string
        public static extern string GetPropertyDescription(Shader s, int propertyIdx);
        /// <summary>

Usage Example

        private static 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        = ShaderInspector.GetPropertyType(s, i) + ShaderUtil.GetPropertyDescription(s, i);
                EditorGUILayout.LabelField(propertyName, label, new GUILayoutOption[0]);
            }
        }
All Usage Examples Of UnityEditor.ShaderUtil::GetPropertyDescription