Browse Source

get the animation group's animatables

Raanan Weber 7 năm trước cách đây
mục cha
commit
b384a0a9a6
1 tập tin đã thay đổi với 7 bổ sung0 xóa
  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!;