기술 자료

Unity Engine

Unity Engine

GetTexture

Gets the value of a named texture property.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

GetTexture(int)

Gets the value of a named texture property.
public Texture GetTexture(int nameID)

Parameters

nameID

The ID of the property. This is the same ID that Shader.PropertyToID returns.

Returns

Type

Description

TextureThe value for the texture you specify. Returns
null
if VisualEffect.HasTexture returns
false
.

GetTexture(string)

Gets the value of a named texture property.
public Texture GetTexture(string name)

Parameters

name

The name of the property.

Returns

Type

Description

TextureThe value for the texture you specify. Returns
null
if VisualEffect.HasTexture returns
false
.