Show / Hide Table of Contents

Interface IUnityGameObject

An interface representing an Unity game object.

Inherited Members
IUnityObject.Name
Namespace: Microsoft.XboxStudios.GameStateTracker.Unity
Assembly: GameStateTracker.Unity.dll
Syntax
public interface IUnityGameObject : IUnityObject

Properties

View Source

Position

Gets the game object's cached position.

Declaration
Vector3? Position { get; }
Property Value
Type Description
Vector3?
View Source

Rotation

Gets the game object's cached rotation.

Declaration
Quaternion? Rotation { get; }
Property Value
Type Description
Quaternion?

A quaternion.

Methods

View Source

GetPosition(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.

View Source

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.

  • View Source
In this article
Back to top Generated by DocFX