Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

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

MaterialEditor.TextureProperty

Switch to Manual
public function TextureProperty(prop: MaterialProperty, label: string): Texture;
public function TextureProperty(prop: MaterialProperty, label: string, scaleOffset: bool): Texture;
public function TextureProperty(position: Rect, prop: MaterialProperty, label: string): Texture;
public function TextureProperty(position: Rect, prop: MaterialProperty, label: string, scaleOffset: bool): Texture;
public function TextureProperty(position: Rect, prop: MaterialProperty, label: string, tooltip: string, scaleOffset: bool): Texture;

Parameters

label Label for the field.
scaleOffset Draw scale / offset.

Description

Draw a property field for a texture shader property.