기술 자료

Unity Engine

Unity Engine

GetRangeLimits(Shader, int, int)

Get Limits for a range property at index propertyIdx of Shader s.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
경고
Deprecated. Use Shader.GetPropertyRangeLimits and Shader.GetDefaultValue instead.
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