2016-10-27 7 views

答えて

0

シーンを取得し、そこからすべての子を取得できます。コンポーネントインスタンス

  • EL:
    • この

      AFRAME.registerComponent('foo', { 
          init: function() { 
          var allObjects = this.el.sceneEl.object3D.children; 
          } 
      }); 
      
      https://aframe.io/docs/0.3.0/core/entity.html#sceneel<a-entity>要素コンポーネントが接続されていることを
    • sceneEl:<a-scene>要素
    • object3D:3:シーンオブジェクト
    • 子供three.js。 jsシーンのすべてのオブジェクト
  • 関連する問題