ドキュメント

Unity Engine

Download Unity

Unity Engine

GetTextureDimension

Gets expected texture dimension for a named exposed texture.
読み終わるまでの所要時間 1 分最終更新 24日前

Definition

GetTextureDimension(int)

Gets expected texture dimension for 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

TextureDimensionThe expected dimension of the named exposed texture.

GetTextureDimension(string)

Gets expected texture dimension for a named exposed texture.
public TextureDimension GetTextureDimension(string name)

Parameters

name

The name of the property.

Returns

Type

Description

TextureDimensionThe expected dimension of the named exposed texture.