Skip to content

Instantly share code, notes, and snippets.

@takashicompany
Last active August 29, 2015 14:03
Show Gist options
  • Save takashicompany/990333e689c13ec61bd3 to your computer and use it in GitHub Desktop.
Save takashicompany/990333e689c13ec61bd3 to your computer and use it in GitHub Desktop.
HOTweenとiTweenのサンプル
// targetが1秒かけて、座標(0,0,0)へ、イージングをしながら移動する
HOTween.To(
target.transform,
1f,
new TweenParms()
.Prop("position", Vector3.zero)
.Ease (EaseType.EaseOutBack)
);
iTween.MoveTo(
target,
iTween.Hash(
"position", Vector3.zero,
"time", 1f,
"easetype", iTween.EaseType.easeOutBack
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment