static private DoPowerRangeProperty ( |
||
position | ||
prop | ||
label | string | |
power | float | |
Résultat | float |
public override void OnGUI(Rect position, MaterialProperty prop, GUIContent label, MaterialEditor editor) { if (prop.type != MaterialProperty.PropType.Range) { GUIContent label2 = EditorGUIUtility.TempContent("PowerSlider used on a non-range property: " + prop.name, EditorGUIUtility.GetHelpIcon(MessageType.Warning)); EditorGUI.LabelField(position, label2, EditorStyles.helpBox); return; } MaterialEditor.DoPowerRangeProperty(position, prop, label, this.power); }