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.TextureProperty

TextureProperty(prop: MaterialProperty, label: string): Texture;
Texture TextureProperty(MaterialProperty prop, string label);
def TextureProperty(prop as MaterialProperty, label as string) as Texture
TextureProperty(prop: MaterialProperty, label: string, scaleOffset: bool): Texture;
Texture TextureProperty(MaterialProperty prop, string label, bool scaleOffset);
def TextureProperty(prop as MaterialProperty, label as string, scaleOffset as bool) as Texture
TextureProperty(position: Rect, prop: MaterialProperty, label: string, scaleOffset: bool): Texture;
Texture TextureProperty(Rect position, MaterialProperty prop, string label, bool scaleOffset);
def TextureProperty(position as Rect, prop as MaterialProperty, label as string, scaleOffset as bool) as Texture

Parameters

labelLabel for the field.
scaleOffsetDraw scale / offset.

Description

Draw a property field for a texture shader property.