1. Introdution
2. Function
Transform
transform.Func()
position
DOMove(Vector3 target, float time)
DOLocalMove()
DOPunchPosition()
rotation
DORotate()
DOLocalRotate()
DORotateQuaternion()
DOLookat()
DOPunchRotation()
scale
DOScale()
DOPunchScale()
other
DOShakePosition()
:常用于相机的振动效果
blend
- 如果同时执行两个
DOMove()
,则前一个会被覆盖,这时需要使用动画混合 - 实现增量控制
DOBlendableMoveBy()
DOBlendablePunchRotation()
Material
Material material = GetComponent<MeshRenderer>().material;
material.Func()
color
DOColor()
:传颜色属性名字DOGradientColor()
:渐变颜色动画
alpha
DOColor(Color.clear, time)
:通过改变颜色的透明度改变物体透明度DOFade()
other
DOOffset()
:动态改变uv坐标,可用于特效,如武器流光DOVector()
:改变任意material四维向量值DOBlendableColor()
:颜色混合
3. Tips
- 函数命名与功能相关,每一类命名都有关键词