编写自定义效果(C#)
1. 效果基类
public class CustomEffect : AnimationScriptableBase
{
//[...]2. 属性
[CreateAssetMenu(fileName = "YourCustomEffect", menuName = "Text Animator/Custom/YourCustomEffect")]
[System.Serializable]
public class CustomEffect : AnimationScriptableBase
{
//[...]3. 修饰符方法
3.1 ResetContext
3.2 SetModifierTo
4. 动画方法
4.1 GetMaxDuration
4.2 CanApplyEffectTo
4.3 ApplyEffect
✅ 完成!
最后更新于