DoTween官方文档中文版(六)UGUI、tk2d
CanvasGroup (Unity UI 4.6)
Graphic (Unity UI 4.6)
Blendable tweens
Image (Unity UI 4.6)
- DOColor(Color to, float duration)
- DOFade(float to, float duration)
- DOFillAmount(float to, float duration)
Blendable tweens
LayoutElement (Unity UI 4.6)
DOFlexibleSize(Vector2 to, float duration, bool snapping)
- DOMinSize(Vector2 to, float duration, bool snapping)
- DOPreferredSize(Vector2 to, float duration, bool snapping)
Outline (Unity UI 4.6)
RectTransform (Unity UI 4.6)
- DOAnchorPos(Vector2 to, float duration, bool snapping)
- DOAnchorPos3D(Vector3 to, float duration, bool snapping)
- DOShakeAnchorPos(float duration, float/Vector3 strength, int vibrato, float randomness, boolsnapping)
- DOSizeDelta(Vector2 to, float duration, bool snapping)
Slider (Unity UI 4.6)
Text (Unity UI 4.6)
- DOColor(Color to, float duration)
- DOFade(float to, float duration)
- DOText(string to, float duration, bool richTextEnabled = true, ScrambleMode scrambleMode = ScrambleMode.None, string scrambleChars = null)
Blendable tweens
PRO ONLY ➨ 2D Toolkit shortcuts
tk2dBaseSprite
- DOScale(Vector3 to, float duration)
- DOScaleX/Y/Z(float to, float duration)
- DOColor(Color to, float duration)
- DOFade(float to, float duration)
tk2dSlicedSprite
tk2dTextMesh
- DOColor(Color to, float duration)
- DOFade(float to, float duration)
- DOText(string to, float duration, bool richTextEnabled = true, ScrambleMode scrambleMode = ScrambleMode.None, string scrambleChars = null)
PRO ONLY ➨ TextMesh Pro shortcuts
TextMeshPro + TextMeshProUGUI
- DOScale(float to, float duration)
- DOColor(Color to, float duration)
- DOFaceColor(Color to, float duration)
- DOFaceFade(float to, float duration)
- DOFade(float to, float duration)
- DOFontSize(float to, float duration)
- DOGlowColor(Color to, float duration)
- DOMaxVisibleCharacters(int to, float duration)
- DOOutlineColor(Color to, float duration)
- DOText(string to, float duration, bool richTextEnabled = true, ScrambleMode scrambleMode = ScrambleMode.None, string scrambleChars = null)