Question about add collection file in collection

#1

I add a collection file ‘A’ in collection ‘B’ and change the position of game object which is belong to A collection in B collection, when I restart the defold, the change didn’t work.TIM%E6%88%AA%E5%9B%BE20190711170724

0 Likes

#2

Is this a bug? or it is working like this?

0 Likes

#3

That’s just how it works. You can change the position, rotation, and scale of collection ‘A’ inside collection ‘B’, but you can’t move the game objects inside collection ‘A’ (without modifying the original and therefore all instances). I believe the only things you can change per-collection-instance are script properties.

The editor is kind of bad about enforcing and showing these things. Some things, like the transforms, show up in the editor but are wiped on restart, other things, like changing the default animation on a sprite, will actually modify the prototype collection.

Note that if you, say, change the scale of collection ‘A’, that scale will be applied to all the game objects in that collection, if you check it at runtime.

1 Like

#4

@vlaaad and @markus.gustavsson can we do something to make this more clear in the editor?

0 Likes

#5

In my opinion they should just not be allowed at all—make those property fields read-only or not show them.

1 Like

#6

thanks

0 Likes

#7

Thank you for bringing this to our attention. We will look into making the behavior more intuitive. Or at least document better what is going on and why.

3 Likes

#8

Agreed, I’d prefer it to be read-only.

3 Likes