TextureProperty
Draw a property field for a texture shader property.
Read time 2 minutesLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
TextureProperty(MaterialProperty, string)
Draw a property field for a texture shader property.
public Texture TextureProperty(MaterialProperty prop, string label)
Parameters
Returns
Type | Description |
|---|---|
| Texture |
TextureProperty(MaterialProperty, string, bool)
Draw a property field for a texture shader property.
public Texture TextureProperty(MaterialProperty prop, string label, bool scaleOffset)
Parameters
Returns
Type | Description |
|---|---|
| Texture |
TextureProperty(Rect, MaterialProperty, string)
Draw a property field for a texture shader property.
public Texture TextureProperty(Rect position, MaterialProperty prop, string label)
Parameters
Returns
Type | Description |
|---|---|
| Texture |
TextureProperty(Rect, MaterialProperty, GUIContent)
Draw a property field for a texture shader property.
public Texture TextureProperty(Rect position, MaterialProperty prop, GUIContent label)
Parameters
Returns
Type | Description |
|---|---|
| Texture |
TextureProperty(Rect, MaterialProperty, string, bool)
Draw a property field for a texture shader property.
public Texture TextureProperty(Rect position, MaterialProperty prop, string label, bool scaleOffset)
Parameters
Returns
Type | Description |
|---|---|
| Texture |
TextureProperty(Rect, MaterialProperty, string, string, bool)
Draw a property field for a texture shader property.
public Texture TextureProperty(Rect position, MaterialProperty prop, string label, string tooltip, bool scaleOffset)
Parameters
Label for the field.
Tooltip for the field.
Draw scale / offset.
Returns
Type | Description |
|---|---|
| Texture |
TextureProperty(Rect, MaterialProperty, GUIContent, bool)
Draw a property field for a texture shader property.
public Texture TextureProperty(Rect position, MaterialProperty prop, GUIContent label, bool scaleOffset)
Parameters
Label for the field.
Draw scale / offset.
Returns
Type | Description |
|---|---|
| Texture |
TextureProperty(string, string, ShaderPropertyTexDim)
Draw a property field for a texture shader property.
public Texture TextureProperty(string propertyName, string label, ShaderUtil.ShaderPropertyTexDim texDim)
Parameters
Returns
Type | Description |
|---|---|
| Texture |
TextureProperty(string, string, ShaderPropertyTexDim, bool)
Draw a property field for a texture shader property.
public Texture TextureProperty(string propertyName, string label, ShaderUtil.ShaderPropertyTexDim texDim, bool scaleOffset)
Parameters
Returns
Type | Description |
|---|---|
| Texture |