Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

MaterialEditor.BeginAnimatedCheck

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public void BeginAnimatedCheck(Rect totalPosition, MaterialProperty prop);

Parameters

Parameter Description
totalPosition The position and size of the control, including any label.
prop The material property that the control edits.

Description

Starts showing animation feedback for a material property control at a specified position.

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.


Declaration

public void BeginAnimatedCheck(MaterialProperty prop);

Parameters

Parameter Description
prop The material property that the control edits.

Description

Starts showing animation feedback for a material property control without a specified position.

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.