docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class GeometryObject

    Helper class containing references to disposable resources used to instantiate standalone GameObjects

    Inheritance
    object
    GeometryObject
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Cloud.DataStreaming.Runtime
    Assembly: Unity.Cloud.DataStreaming.Runtime.dll
    Syntax
    public sealed class GeometryObject : IDisposable

    Methods

    ApplyTransformationMatrix(Transform, double4x4)

    Apply a Unity.Mathematics.double4x4 transformation matrix to a Transform in local Space.

    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.

    Implements

    IDisposable
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)