Skip to content

Commit 0f0145f

Browse files
authored
Update __buildScenes.js
1 parent a957ae9 commit 0f0145f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Workspace/Resources/__buildScenes.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ Workspace.newF("__buildScenes", function() { // function for building the worksp
1313
let name = file.replace(".unity", ""); // name of the scene
1414
const scene = new this.Scene(name); // creates a new scene typing
1515

16+
// sets the directory properties
17+
scene.dataDir = this.scenesDir+"/"+file
18+
scene.metaDir = scene.dataDir+".meta";
19+
1620
let data = fs.readFileSync(`${this.scenesDir}/${file}`, 'utf8'); // scene data
1721
let meta = fs.readFileSync(`${this.scenesDir}/${file}.meta`, 'utf8'); // scene metadata
1822

0 commit comments

Comments
 (0)