Forum Discussion

amk.339167's avatar
amk.339167
MHCP Member
10 months ago

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?

1 Reply

  • 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