Explorar o código

get the animation group's animatables

Raanan Weber %!s(int64=7) %!d(string=hai) anos
pai
achega
b384a0a9a6
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      src/Animations/babylon.animationGroup.ts

+ 7 - 0
src/Animations/babylon.animationGroup.ts

@@ -59,6 +59,13 @@ module BABYLON {
             return this._targetedAnimations;
         }
 
+        /**
+         * returning the list of animatables controlled by this animation group.
+         */
+        public get animatables(): Array<Animatable> {
+            return this._animatables;
+        }
+
         public constructor(public name: string, scene: Nullable<Scene> = null) {
             this._scene = scene || Engine.LastCreatedScene!;