 | EntityGameObjectsBehaviourTryGetEntityObject Method |
Tries to find the game object of the entity with the specified id.
Namespace: Slash.Unity.Common.ECSAssembly: Slash.Unity.Common (in Slash.Unity.Common.dll) Version: 1.0.6018.40182
Syntaxpublic bool TryGetEntityObject(
int entityId,
out GameObject entityObject
)
Public Function TryGetEntityObject (
entityId As Integer,
<OutAttribute> ByRef entityObject As GameObject
) As Boolean
public:
bool TryGetEntityObject(
int entityId,
[OutAttribute] GameObject^% entityObject
)
member TryGetEntityObject :
entityId : int *
entityObject : GameObject byref -> bool
Parameters
- entityId
- Type: SystemInt32
Id of the entity to get. - entityObject
- Type: GameObject
Game object of the entity with the specified id, if found, and null otherwise.
Return Value
Type:
Booleantrue, if the game object of the entity was found, and
false otherwise.
See Also