mirror of
https://github.com/enduro2d/enduro2d.git
synced 2025-12-15 00:11:55 +07:00
move scene root to actor component
This commit is contained in:
@@ -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]
|
||||
}
|
||||
}
|
||||
}]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user