기술 자료

Unity Engine

Unity Engine

TextureProperty

Draw a property field for a texture shader property.
읽는 시간 2분최근 업데이트: 한 달 전

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


label

Label for the field.

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


label

Label for the field.

scaleOffset

Draw scale / offset.

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

position



label

Label for the field.

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

position



Label for the field.

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

position



label

Label for the field.

scaleOffset

Draw scale / offset.

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

position



label

Label for the field.

tooltip

Tooltip for the field.

scaleOffset

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

position



Label for the field.

scaleOffset

Draw scale / offset.

Returns

Type

Description

Texture

TextureProperty(string, string, ShaderPropertyTexDim)

Draw a property field for a texture shader property.
경고
Removed. Use TextureProperty with MaterialProperty instead.
public Texture TextureProperty(string propertyName, string label, ShaderUtil.ShaderPropertyTexDim texDim)

Parameters

propertyName


label

Label for the field.

texDim

ShaderPropertyTexDim

Returns

Type

Description

Texture

TextureProperty(string, string, ShaderPropertyTexDim, bool)

Draw a property field for a texture shader property.
경고
Removed. Use TextureProperty with MaterialProperty instead.
public Texture TextureProperty(string propertyName, string label, ShaderUtil.ShaderPropertyTexDim texDim, bool scaleOffset)

Parameters

propertyName


label

Label for the field.

texDim

ShaderPropertyTexDim

scaleOffset

Draw scale / offset.

Returns

Type

Description

Texture