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;
TextureProperty(prop: MaterialProperty, label: string, scaleOffset: bool): Texture;
TextureProperty(position: Rect, prop: MaterialProperty, label: string, scaleOffset: bool): Texture;

Parameters

labelLabel for the field.
scaleOffsetDraw scale / offset.

Description

Draw a property field for a texture shader property.