DoPowerRangeProperty() static private méthode

static private DoPowerRangeProperty ( Rect position, MaterialProperty prop, string label, float power ) : float
position UnityEngine.Rect
prop MaterialProperty
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);
 }