Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

MaterialEditor.FloatProperty

FloatProperty(prop: MaterialProperty, label: string): float;
float FloatProperty(MaterialProperty prop, string label);
def FloatProperty(prop as MaterialProperty, label as string) as float
FloatProperty(position: Rect, prop: MaterialProperty, label: string): float;
float FloatProperty(Rect position, MaterialProperty prop, string label);
def FloatProperty(position as Rect, prop as MaterialProperty, label as string) as float

Parameters

labelLabel for the property.

Description

Draw a property field for a float shader property.