docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class UnityObjectContext

    Inheritance
    object
    UnityObjectContext
    UnityObjectContext<T>
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Netcode.RuntimeTests
    Assembly: Unity.Netcode.RuntimeTests.dll
    Syntax
    public class UnityObjectContext : IDisposable

    Constructors

    UnityObjectContext(Object)

    Declaration
    protected UnityObjectContext(Object root)
    Parameters
    Type Name Description
    Object root

    Methods

    CreateGameObject(string)

    Declaration
    public static UnityObjectContext<GameObject> CreateGameObject(string name = "")
    Parameters
    Type Name Description
    string name
    Returns
    Type Description
    UnityObjectContext<GameObject>

    CreateNetworkObject(string)

    Declaration
    public static UnityObjectContext<NetworkObject> CreateNetworkObject(string name = "")
    Parameters
    Type Name Description
    string name
    Returns
    Type Description
    UnityObjectContext<NetworkObject>

    Dispose()

    Declaration
    public void Dispose()

    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)