瀏覽代碼

get the animation group's animatables

Raanan Weber 7 年之前
父節點
當前提交
b384a0a9a6
共有 1 個文件被更改,包括 7 次插入0 次删除
  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!;