Documentation

Unity Engine


Unity Engine


GetTexDim(Shader, int)

Gets texture dimension of a shader property.
Read time 1 minuteLast updated a month ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
Warning
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