浏览代码

Add a mesh getter (#8524)

Popov72 5 年之前
父节点
当前提交
aeba9f4391
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      src/Helpers/videoDome.ts

+ 7 - 1
src/Helpers/videoDome.ts

@@ -55,9 +55,15 @@ export class VideoDome extends TransformNode {
     protected _material: BackgroundMaterial;
     protected _material: BackgroundMaterial;
 
 
     /**
     /**
-     * The surface used for the skybox
+     * The surface used for the video dome
      */
      */
     protected _mesh: Mesh;
     protected _mesh: Mesh;
+    /**
+     * Gets the mesh used for the video dome.
+     */
+    public get mesh(): Mesh {
+        return this._mesh;
+    }
 
 
     /**
     /**
      * A mesh that will be used to mask the back of the video dome in case it is a 180 degree movie.
      * A mesh that will be used to mask the back of the video dome in case it is a 180 degree movie.