Legacy Documentation: Version 5.4
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

ShaderUtil.GetRangeLimits

public static float GetRangeLimits(Shader s, int propertyIdx, int defminmax);

Parameters

defminmax Which value to get: 0 = default, 1 = min, 2 = max.
s The shader to check against.
propertyIdx The property index to use.

Description

Get Limits for a range property at index propertyIdx of Shader s.