BlueGit

timfa frameworkv3

get animation name

timfa Tim · pushed by timfa

Authored 2022-10-19 · 4 years ago

Hash
2c04881feb52f5b4474eafee22d84450f7a6b4a6
Parent
d417b9cf
1 file changed +5 −0
framework/engine/objectComponents/renderer.js +5 −0
@@ -117,6 +117,11 @@ class Renderer
117 117 );
118 118 }
119 119
120 get currentAnimationName()
121 {
122 return this.cycle? this.cycle.label : null;
123 }
124
120 125 setAnimation(label, defaultIndex = 0, cycleSpeed = -1)
121 126 {
122 127 if(this.cycle)
@@ -117,6 +117,11 @@ class Renderer
117 );
117 );
118 }
118 }
119
119
120 get currentAnimationName()
121 {
122 return this.cycle? this.cycle.label : null;
123 }
124
120 setAnimation(label, defaultIndex = 0, cycleSpeed = -1)
125 setAnimation(label, defaultIndex = 0, cycleSpeed = -1)
121 {
126 {
122 if(this.cycle)
127 if(this.cycle)