Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetRangeLimits(Shader, int, int)

Get Limits for a range property at index propertyIdx of Shader s.
Read time 1 minuteLast updated 14 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static float GetRangeLimits(Shader s, int propertyIdx, int defminmax)

Parameters

The shader to check against.

propertyIdx

The property index to use.

defminmax

Which value to get: 0 = default, 1 = min, 2 = max.

Returns

Type

Description

float