Class GeometryObject
Helper class containing references to disposable resources used to instantiate standalone GameObjects
Implements
Inherited Members
Namespace: Unity.Cloud.DataStreaming.Runtime
Assembly: Unity.Cloud.DataStreaming.Runtime.dll
Syntax
public sealed class GeometryObject : IDisposable
Methods
ApplyTransformationMatrix(Transform, double4x4)
Declaration
public static void ApplyTransformationMatrix(Transform transform, double4x4 matrix)
Parameters
Type | Name | Description |
---|---|---|
Transform | transform | The Transform to apply the to. |
double4x4 | matrix | The Unity.Mathematics.double4x4 transformation matrix to apply to . |
Dispose()
Dispose the resources used to instantiate GameObjects
Declaration
public void Dispose()
InstantiateAsync(double4x4, CancellationToken)
Instantiates a GameObject modified by the given transformation matrix.
Declaration
public Task<GameObject> InstantiateAsync(double4x4 transformationMatrix, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
double4x4 | transformationMatrix | The transformation matrix to apply to the instantiated GameObject. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task<GameObject> | Returns the GameObject instance. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Throws if unable to instantiate the GameObject. |