Documentation

Unity Engine

Unity Engine

GetTexDim(Shader, int)

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

Definition

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