Motion Easing Editor & API
Panning
Space + Mouse Left Drag
Zoom
Ctrl + Space + Mouse Left Drag
Add control point
Ctrl + Mouse Left Click
Remove control point
Alt + Mouse Left Click
using PenMotion;
…
void RegisterMotion() {
PMotionQuery.LoadFile("C:\motionFile.pmotion", "CustomKey");
}
void UseMotion() {
for(float time=0f; time<1f; time+=0.01f) {
float motionTime = PMotionQuery.GetMotionValue("CustomKey", "MotionName", time);
UI.Position = new Vector2(motionTime, 0f);
//It's just example. please don't use it.
//maybe GameEngine's function is better than this.
Thread.Sleep(16);
}
}