Interface IUnityGameObject
An interface representing an Unity game object.
Inherited Members
Namespace: Microsoft.XboxStudios.GameStateTracker.Unity
Assembly: GameStateTracker.Unity.dll
Syntax
public interface IUnityGameObject : IUnityObjectProperties
View SourcePosition
Gets the game object's cached position.
Declaration
Vector3? Position { get; }Property Value
| Type | Description | 
|---|---|
| Vector3? | 
Rotation
Gets the game object's cached rotation.
Declaration
Quaternion? Rotation { get; }Property Value
| Type | Description | 
|---|---|
| Quaternion? | A quaternion. | 
Methods
View SourceGetPosition(TimeSpan)
Gets the game object's position.
Declaration
Task<Vector3?> GetPosition(TimeSpan maxAge)Parameters
| Type | Name | Description | 
|---|---|---|
| TimeSpan | maxAge | The maximum age of the game object, if it exists in the cache. | 
Returns
| Type | Description | 
|---|---|
| Task<Vector3?> | A position vector. | 
GetRotation(TimeSpan)
Gets the game object's rotation.
Declaration
Task<Quaternion?> GetRotation(TimeSpan maxAge)Parameters
| Type | Name | Description | 
|---|---|---|
| TimeSpan | maxAge | The maximum age of the game object, if it exists in the cache. | 
Returns
| Type | Description | 
|---|---|
| Task<Quaternion?> | A quaternion. |