TextureScaleOffsetProperty
Draws tiling and offset properties for a texture.
阅读时间1 分钟最后更新于 1 个月前
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
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
Rect to draw this control in.
Property to draw.
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
Returns
Type | Description |
|---|---|
| Vector4 |
TextureScaleOffsetProperty(Rect, Vector4, bool)
TODO.
public static Vector4 TextureScaleOffsetProperty(Rect position, Vector4 scaleOffset, bool partOfTexturePropertyControl)
Parameters
Returns
Type | Description |
|---|---|
| Vector4 |