Version: 2020.3

MaterialEditor.BeginAnimatedCheck

切换到手册
public void BeginAnimatedCheck (Rect totalPosition, MaterialProperty prop);
public void BeginAnimatedCheck (MaterialProperty prop);

参数

totalPosition 屏幕上用于控件的矩形,包括标签(如果适用)。
prop 用于控件的 MaterialProperty。

描述

创建一个属性封装器,适用于使常规 GUI 控件与 MaterialProperty 配合使用。

BeginAnimatedCheck 和 EndAnimatedCheck 会自动处理动画属性颜色反馈和上下文菜单。

另请参阅:EndAnimatedCheck