private GetPropertyDescription ( |
||
s | ||
propertyIdx | int | |
return | string |
public static extern string GetPropertyDescription(Shader s, int propertyIdx);
/// <summary>
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]); } }