Skip to main content
New Participant
April 13, 2025
Question

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

PigeonNo12
Honored Contributor
April 22, 2025

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

Upcoming Events : Build with a Mentor: Custom UI Thursday 3/20 at 5:00 PM PT Register March calendar of all Mentor Workshops and Office Hours