Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IsShaderPropertyHidden(Shader, int)

Returns true if the shader propery at index propertyIdx is hidden with the [HideInInspector] attribute in the shader code.
Read time 1 minuteLast updated 14 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static bool IsShaderPropertyHidden(Shader s, int propertyIdx)

Parameters

The shader to check against.

propertyIdx

The property index to use.

Returns

Type

Description

bool