mirror of
https://github.com/enduro2d/enduro2d.git
synced 2025-12-14 08:07:17 +07:00
add uuid property to prefab, rename prototype to parent
This commit is contained in:
12
untests/bin/library/parent.json
Normal file
12
untests/bin/library/parent.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"uuid" : "73740BC4-CE9F-4A7F-A029-4AB65027A8AE",
|
||||
"components" : {
|
||||
"named" : {
|
||||
"name" : "parent"
|
||||
},
|
||||
"circle_collider" : {
|
||||
"radius" : 5,
|
||||
"offset" : [4,2]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,17 +1,13 @@
|
||||
{
|
||||
"parent" : "prototype.json",
|
||||
"components" : {
|
||||
"touchable" : {},
|
||||
|
||||
"named" : {
|
||||
"name" : "prefab"
|
||||
},
|
||||
"rect_collider" : {
|
||||
"size" : [1,2],
|
||||
"offset" : [2,4]
|
||||
},
|
||||
|
||||
"circle_collider" : {
|
||||
"radius" : 5,
|
||||
"offset" : [4,2]
|
||||
},
|
||||
|
||||
"polygon_collider" : {
|
||||
"points" : [[1,2],[2,3],[3,4]],
|
||||
"offset" : [8,4]
|
||||
|
||||
Reference in New Issue
Block a user