文档

Unity Engine

Unity Engine

GetTexDim(Shader, int)

Gets texture dimension of a shader property.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
警告
Deprecated. Use Shader.GetPropertyTextureDimension instead.
public static TextureDimension GetTexDim(Shader s, int propertyIdx)

Parameters

The shader to get the property from.

propertyIdx

The property index to use.

Returns

Type

Description

TextureDimensionTexture dimension.

Remarks