docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class UnityObjectContext<T>

    Helper method for tests to create and destroy Unity Objects.

    Inheritance
    object
    UnityObjectContext
    UnityObjectContext<T>
    Implements
    IDisposable
    Inherited Members
    UnityObjectContext.CreateGameObject(string)
    UnityObjectContext.CreateNetworkObject(string)
    UnityObjectContext.Dispose()
    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<T> : UnityObjectContext, IDisposable where T : Object
    Type Parameters
    Name Description
    T

    The type of Object this context incorporates.

    Properties

    Object

    Declaration
    public T Object { get; }
    Property Value
    Type Description
    T

    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)