TryGetSpaceObjectID

Method

Try find the space object ID for a given game object in the scene. Any child game object of a visual representation of a space object can be used to retrieve the space object ID.

Definition

bool TryGetSpaceObjectID(GameObject gameObject, out int objectID)
bool TryGetSpaceObjectID(GameObject gameObject, out int objectID)

Returns bool

Parameters

ParameterDescription
GameObject gameObject

A game object that is the visual representation of a space object

int objectID

The resulting space object ID