private static void ShowShaderProperties(Shader s) { GUILayout.Space(5f); GUILayout.Label("Properties:", EditorStyles.boldLabel, new GUILayoutOption[0]); int propertyCount = ShaderUtil.GetPropertyCount(s); for (int index = 0; index < propertyCount; ++index) { EditorGUILayout.LabelField(ShaderUtil.GetPropertyName(s, index), ShaderInspector.GetPropertyType(s, index) + ShaderUtil.GetPropertyDescription(s, index), new GUILayoutOption[0]); } }
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]); } }