docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ConnectionManager

    The class that manages Connection and serializes instances.

    Inheritance
    object
    Object
    ScriptableObject
    ConnectionManager
    Inherited Members
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, bool)
    Object.FindObjectsByType(Type, FindObjectsSortMode)
    Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsByType<T>(FindObjectsSortMode)
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindFirstObjectByType<T>()
    Object.FindAnyObjectByType<T>()
    Object.FindFirstObjectByType<T>(FindObjectsInactive)
    Object.FindAnyObjectByType<T>(FindObjectsInactive)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindFirstObjectByType(Type)
    Object.FindAnyObjectByType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.FindFirstObjectByType(Type, FindObjectsInactive)
    Object.FindAnyObjectByType(Type, FindObjectsInactive)
    Object.ToString()
    Object.name
    Object.hideFlags
    Namespace: Unity.LiveCapture
    Assembly: Unity.LiveCapture.dll
    Syntax
    public class ConnectionManager : ScriptableObject

    Properties

    Connections

    The connection instances.

    Declaration
    public IEnumerable<Connection> Connections { get; }
    Property Value
    Type Description
    IEnumerable<Connection>

    Instance

    The ConnectionManager instance.

    Declaration
    public static ConnectionManager Instance { get; }
    Property Value
    Type Description
    ConnectionManager

    Methods

    CreateConnection(Type, bool)

    Creates a Connection of a specified type.

    Declaration
    public Connection CreateConnection(Type type, bool registerUndo = true)
    Parameters
    Type Name Description
    Type type

    The type of connection to create.

    bool registerUndo

    When true, allows the user to undo creating the connection.

    Returns
    Type Description
    Connection

    The connection instance.

    Remarks

    You should create only one instance of each connection at a time. If a connection of type type already exists, the method returns this existing connection instead of a new instance.

    DestroyConnection(Connection, bool)

    Destroys a Connection.

    Declaration
    public void DestroyConnection(Connection connection, bool registerUndo = true)
    Parameters
    Type Name Description
    Connection connection

    The connection to destroy.

    bool registerUndo

    When true, allows the user to undo destroying the connection.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if connection is null.

    ArgumentException

    Thrown if connection is not owned by this instance.

    HasConnection(Type)

    Checks if a Connection of a specified type exists.

    Declaration
    public bool HasConnection(Type type)
    Parameters
    Type Name Description
    Type type

    The type of connection to look for.

    Returns
    Type Description
    bool

    true if a connection of the specified type exists; otherwise, false.

    TryGetConnection<TConnection>(out TConnection)

    Gets the Connection of a specified type, if it exists.

    Declaration
    public bool TryGetConnection<TConnection>(out TConnection connection) where TConnection : Connection
    Parameters
    Type Name Description
    TConnection connection

    The returned connection, or default if there is no matching connection instance.

    Returns
    Type Description
    bool

    true if a matching connection instance was found; otherwise, false.

    Type Parameters
    Name Description
    TConnection

    The type of the connection to get.

    Events

    ConnectionAdded

    An event invoked when a Connection is added.

    Declaration
    public static event Action<Connection> ConnectionAdded
    Event Type
    Type Description
    Action<Connection>

    ConnectionRemoved

    An event invoked when a Connection is removed.

    Declaration
    public static event Action<Connection> ConnectionRemoved
    Event Type
    Type Description
    Action<Connection>
    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)