Method TryGetObjectById
TryGetObjectById(int, out Object)
Retrieves an object of the scene which has a given id.
Declaration
public bool TryGetObjectById(int objectId, out Scene.Object obj)
Parameters
Type | Name | Description |
---|---|---|
int | objectId | Id of an object. |
Scene.Object | obj |
Returns
Type | Description |
---|---|
bool | An object with given id. |
Exceptions
Type | Condition |
---|---|
Sdk2Exception | If object id is not valid. |