Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetTexDim(Shader, int)

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

Definition

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