기술 자료

Unity Engine

Unity Engine

mode

Controls how the gradient colors are interpolated.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public GradientMode mode { get; set; }

Remarks

The default interpolation mode is GradientMode.Blend. Note that GradientMode.PerceptualBlend can often result in a more natural looking color blend, especially between very different colors. It is slightly more expensive to calculate than the default Blend mode.
Additional Resources: GradientMode, Gradient.Evaluate.