move scene root to actor component

This commit is contained in:
2019-05-13 19:20:35 +07:00
parent 64b8e594a3
commit 2eff98b639
6 changed files with 57 additions and 55 deletions

View File

@@ -1,30 +1,28 @@
{
"components" : {
"scene" : {
"root" : {
"children" : [{
"prototype" : "camera_prefab.json",
"components" : {
"camera" : {
"background" : [1.0, 0.4, 0.0, 1.0]
}
}
},{
"prototype" : "gnome_prefab.json",
"components" : {
"actor" : {
"translation" : [0,50,0]
}
}
}, {
"prototype" : "ship_prefab.json",
"components" : {
"actor" : {
"translation" : [0,-50,0]
}
}
}]
"actor" : {},
"scene" : {}
},
"children" : [{
"prototype" : "camera_prefab.json",
"components" : {
"camera" : {
"background" : [1.0, 0.4, 0.0, 1.0]
}
}
}
},{
"prototype" : "gnome_prefab.json",
"components" : {
"actor" : {
"translation" : [0,50,0]
}
}
}, {
"prototype" : "ship_prefab.json",
"components" : {
"actor" : {
"translation" : [0,-50,0]
}
}
}]
}