docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ConnectionEditor

    The base editor for Connection instances.

    Inheritance
    object
    Object
    ScriptableObject
    Editor
    ConnectionEditor
    Inherited Members
    Editor.SaveChanges()
    Editor.DiscardChanges()
    Editor.CreateEditorWithContext(Object[], Object, Type)
    Editor.CreateEditorWithContext(Object[], Object)
    Editor.CreateCachedEditorWithContext(Object, Object, Type, ref Editor)
    Editor.CreateCachedEditorWithContext(Object[], Object, Type, ref Editor)
    Editor.CreateCachedEditor(Object, Type, ref Editor)
    Editor.CreateCachedEditor(Object[], Type, ref Editor)
    Editor.CreateEditor(Object)
    Editor.CreateEditor(Object, Type)
    Editor.CreateEditor(Object[])
    Editor.CreateEditor(Object[], Type)
    Editor.DrawPropertiesExcluding(SerializedObject, params string[])
    Editor.DrawDefaultInspector()
    Editor.Repaint()
    Editor.OnInspectorGUI()
    Editor.CreateInspectorGUI()
    Editor.RequiresConstantRepaint()
    Editor.DrawHeader()
    Editor.OnHeaderGUI()
    Editor.ShouldHideOpenButton()
    Editor.DrawFoldoutInspector(Object, ref Editor)
    Editor.HasPreviewGUI()
    Editor.GetPreviewTitle()
    Editor.RenderStaticPreview(string, Object[], int, int)
    Editor.OnPreviewGUI(Rect, GUIStyle)
    Editor.OnInteractivePreviewGUI(Rect, GUIStyle)
    Editor.OnPreviewSettings()
    Editor.GetInfoString()
    Editor.DrawPreview(Rect)
    Editor.ReloadPreviewInstances()
    Editor.UseDefaultMargins()
    Editor.MoveNextTarget()
    Editor.ResetTarget()
    Editor.hasUnsavedChanges
    Editor.saveChangesMessage
    Editor.target
    Editor.targets
    Editor.serializedObject
    Editor.finishedDefaultHeaderGUI
    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.Editor
    Assembly: Unity.LiveCapture.Editor.dll
    Syntax
    [CustomEditor(typeof(Connection), true)]
    public class ConnectionEditor : Editor
    Remarks

    Inherit from this class when implementing the editor for a custom Connection.

    Methods

    CreateIMGUIContainer(Action)

    Return this in CreateInfoGUI() and CreateSettingsGUI() to implement your UI with IMGUI instead of UI Toolkit.

    // Define a void function containing the IMGUI code:
    void OnGUI()
    {
        EditorGUILayout.Toggle(myContent, myValue);
    }
    // ...
    // In CreateInfoGUI or CreateSettingsGUI:
    return CreateIMGUIContainer(OnGUI);
    Declaration
    protected IMGUIContainer CreateIMGUIContainer(Action onGUIHandler)
    Parameters
    Type Name Description
    Action onGUIHandler

    The function that's called to render and handle IMGUI events for the container.

    Returns
    Type Description
    IMGUIContainer

    An IMGUIContainer with the standard spacing and indentation for the ConnectionsWindow.

    CreateInfoGUI()

    Creates the info contents for this Connection. Override to implement your UI.

    Declaration
    protected virtual VisualElement CreateInfoGUI()
    Returns
    Type Description
    VisualElement

    The contents to display in the left/top pane of the ConnectionsWindow under the Connection's toolbar.

    Remarks

    Use IndentContent and SpaceContent USS classes to add a consistent padding to its elements.

    See Also
    CreateIMGUIContainer(Action)

    CreateSettingsGUI()

    Creates the contents of the editable settings for this Connection. Override to implement your UI.

    Declaration
    protected virtual VisualElement CreateSettingsGUI()
    Returns
    Type Description
    VisualElement

    The contents to display in the right/bottom pane of the ConnectionsWindow when this connection is selected for inspection.

    Remarks

    Use IndentContent and SpaceContent USS classes to add a consistent padding to its elements.

    See Also
    CreateIMGUIContainer(Action)

    GetToolbar()

    Gets the toolbar that represents this Connection in the top/left pane of the ConnectionsWindow.

    Declaration
    protected ConnectionEditor.IToolbarUI GetToolbar()
    Returns
    Type Description
    ConnectionEditor.IToolbarUI

    The cached toolbar object.

    OnConnectionChanged()

    Called when the Connection referenced by Editor.target is modified. Override this function to update UI data based on the Connection.

    Declaration
    protected virtual void OnConnectionChanged()

    OnDestroy()

    Automatically removes the elements created by CreateInfoGUI() and CreateSettingsGUI() from the hierarchy.

    Declaration
    protected virtual void OnDestroy()

    OnEnable()

    Initializes the connection inspector.

    Declaration
    protected virtual void OnEnable()

    StartInspection()

    Called by ConnectionsWindow when this Connection is selected for inspection.

    Declaration
    protected virtual void StartInspection()

    StopInspection()

    Called by ConnectionsWindow when this Connection is no longer selected for inspection.

    Declaration
    protected virtual void StopInspection()
    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)