Set Parent

STD Library
Lado del servidor
Disponible en PC y móvil

Setting the parent node requires that both parent and child have the Transform component

Declaración

func SetParent(parent entity<Transform>, child entity<Transform>, worldPositionStays bool)
go

Parámetros

Entrada

Nombre Tipo Descripción
Parent Transform parent node
Child Transform child node
World Position Stays Bool Whether to keep the current world position, rotation and scaling of child nodes, this item is invalid when setting the UI.