amk.339167
10 months agoMHCP Member
Reparent Entity
HI,
i want to add stuff to a basket. For that i want to set the parent of an entity on runtime using Typescript. Is there any way to do so?
HI,
i want to add stuff to a basket. For that i want to set the parent of an entity on runtime using Typescript. Is there any way to do so?
It's not possible to set the parent of an object on runtime using TS.
One possible workaround is using a hide/show technique. Hide the movable object once it reaches its destination and then show a prop in the basket. For better experience, you might keep a generic placeholder in the basket (plain texture), and then apply a texture that matches the object that the player is attempting to collect