MouseClick & Parenting Bug

If Object 1 has a MouseClick behavior and Object 2 is parented to Object 1, then if you use behaviors to Spawn Object 2, its MouseClick behavior inherited from Object 1 will not work or trigger at all. In fewer words, MouseClick doesn’t get properly inherited in spawned child objects.
Now I am on mobile here, so let me know if it works perfectly fine on a pc.

This kind of breaks my entire Flowjam game, so it would be nice if this could be fixed…

3 Likes

It does not unfortunately :slightly_frowning_face:

1 Like

Parenting works by putting the parent’s behaviors into the child, which becomes child controlled.
The only inheritance is the properties of the parents like collision, proximity, and Raycast.

3 Likes

So a MouseClick behavior in a parent shouldn’t trigger in a child when the child is clicked?
The problem is that most of the time it does trigger properly in the child, just not when the child is spawned using the Spawn behavior

2 Likes

It should because the child should be using the parents behaviors as its own,
if the spawn is breaking it then it definitely is a bug.

2 Likes