Interface IActor
An interface representing an Unreal Engine actor.
Inherited Members
Namespace: Microsoft.XboxStudios.GameStateTracker.Unreal
Assembly: GameStateTracker.Unreal.dll
Syntax
public interface IActor : IObject
Properties
View SourceLocation
Gets the actor's cached location.
Declaration
Vector3? Location { get; }
Property Value
Type | Description |
---|---|
Vector3? | A location vector. |
Rotation
Gets the actor's cached rotation.
Declaration
Rotation3? Rotation { get; }
Property Value
Type | Description |
---|---|
Rotation3? | A rotator. |
Methods
View SourceGetLocation(TimeSpan, CancellationToken)
Gets the actor's location.
Declaration
Task<Vector3?> GetLocation(TimeSpan maxAge, CancellationToken token = default)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | maxAge | The maximum age of the actor, if it exists in the cache. |
CancellationToken | token | The cancellation token. |
Returns
Type | Description |
---|---|
Task<Vector3?> | A location vector. |
GetRotation(TimeSpan, CancellationToken)
Gets the actor's rotation.
Declaration
Task<Rotation3?> GetRotation(TimeSpan maxAge, CancellationToken token = default)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | maxAge | The maximum age of the actor, if it exists in the cache. |
CancellationToken | token | The cancellation token. |
Returns
Type | Description |
---|---|
Task<Rotation3?> | A rotator. |