Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TextureScaleOffsetProperty

Draws tiling and offset properties for a texture.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor

TextureScaleOffsetProperty(MaterialProperty)

Draws tiling and offset properties for a texture.
public void TextureScaleOffsetProperty(MaterialProperty property)

Parameters

Property to draw.

TextureScaleOffsetProperty(Rect, MaterialProperty)

Draws tiling and offset properties for a texture.
public float TextureScaleOffsetProperty(Rect position, MaterialProperty property)

Parameters

position

Rect to draw this control in.

Property to draw.

Returns

Type

Description

float

TextureScaleOffsetProperty(Rect, MaterialProperty, bool)

Draws tiling and offset properties for a texture.
public float TextureScaleOffsetProperty(Rect position, MaterialProperty property, bool partOfTexturePropertyControl)

Parameters

position

Rect to draw this control in.

Property to draw.

partOfTexturePropertyControl

If this control should be rendered under large texture property control use 'true'. If this control should be shown seperately use 'false'.

Returns

Type

Description

float

TextureScaleOffsetProperty(Rect, Vector4)

TODO.
public static Vector4 TextureScaleOffsetProperty(Rect position, Vector4 scaleOffset)

Parameters

position


scaleOffset

Returns

Type

Description

Vector4

TextureScaleOffsetProperty(Rect, Vector4, bool)

TODO.
public static Vector4 TextureScaleOffsetProperty(Rect position, Vector4 scaleOffset, bool partOfTexturePropertyControl)

Parameters

position


scaleOffset


partOfTexturePropertyControl

Returns

Type

Description

Vector4