getParentOrNull

fun TransformManager.getParentOrNull(transformInstance: Int): Int?

Returns the actual parent entity of an EntityInstance originally defined by TransformManager.setParent.

Return

the parent Entity.

Parameters

transformInstance

the EntityInstance of the transform component to get the parent from.

See also

TransformManager.getInstance