Documentation

Unity Engine

Unity Engine

BeginAnimatedCheck

Starts showing animation feedback for a material property control at a specified position.
Read time 1 minuteLast updated 21 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule

BeginAnimatedCheck(Rect, MaterialProperty)

Starts showing animation feedback for a material property control at a specified position.
public void BeginAnimatedCheck(Rect totalPosition, MaterialProperty prop)

Parameters

totalPosition

The position and size of the control, including any label.

The material property that the control edits.

Remarks

Call this method before you draw a control for a material property, and call MaterialEditor.EndAnimatedCheck after it. Between the two calls, the Unity Editor tints the control when the property is animated, and provides the animation context menu.

BeginAnimatedCheck(MaterialProperty)

Starts showing animation feedback for a material property control without a specified position.
public void BeginAnimatedCheck(MaterialProperty prop)

Parameters

The material property that the control edits.

Remarks

Call this method before you draw a control for a material property, and call MaterialEditor.EndAnimatedCheck after it. Between the two calls, the Unity Editor tints the control when the property is animated, and provides the animation context menu. This overload uses an empty rectangle for the position of the control. To specify the position, use the overload that takes a Rect.