기술 자료

Unity Engine

Unity Engine

GetTextureDimension

Gets the TextureDimension of a named exposed Texture.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

GetTextureDimension(int)

Gets the TextureDimension of a named exposed Texture.
public TextureDimension GetTextureDimension(int nameID)

Parameters

nameID

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

Returns

Type

Description

TextureDimension

Remarks

Additional Resources:TextureDimension.

GetTextureDimension(string)

Gets the TextureDimension of a named exposed Texture.
public TextureDimension GetTextureDimension(string name)

Parameters

name

The name of the property.

Returns

Type

Description

TextureDimension

Remarks

Additional Resources:TextureDimension.