docs.unity3d.com
    目次を表示する/隠す

    Class ConnectionEditor

    The base editor for Connection instances.

    Inheritance
    Object
    Object
    ScriptableObject
    Editor
    ConnectionEditor
    Inherited Members
    Editor.CreateEditorWithContext(Object[], Object, Type)
    Editor.CreateEditorWithContext(Object[], Object)
    Editor.CreateCachedEditorWithContext(Object, Object, Type, Editor)
    Editor.CreateCachedEditorWithContext(Object[], Object, Type, Editor)
    Editor.CreateCachedEditor(Object, Type, Editor)
    Editor.CreateCachedEditor(Object[], Type, Editor)
    Editor.CreateEditor(Object)
    Editor.CreateEditor(Object, Type)
    Editor.CreateEditor(Object[])
    Editor.CreateEditor(Object[], Type)
    Editor.DrawPropertiesExcluding(SerializedObject, String[])
    Editor.DrawDefaultInspector()
    Editor.Repaint()
    Editor.OnInspectorGUI()
    Editor.CreateInspectorGUI()
    Editor.RequiresConstantRepaint()
    Editor.DrawHeader()
    Editor.OnHeaderGUI()
    Editor.ShouldHideOpenButton()
    Editor.DrawFoldoutInspector(Object, Editor)
    Editor.HasPreviewGUI()
    Editor.GetPreviewTitle()
    Editor.RenderStaticPreview(String, Object[], Int32, Int32)
    Editor.OnPreviewGUI(Rect, GUIStyle)
    Editor.OnInteractivePreviewGUI(Rect, GUIStyle)
    Editor.OnPreviewSettings()
    Editor.GetInfoString()
    Editor.DrawPreview(Rect)
    Editor.ReloadPreviewInstances()
    Editor.UseDefaultMargins()
    Editor.Initialize(Object[])
    UnityEditor.Editor.Cleanup()
    UnityEditor.Editor.MoveNextTarget()
    Editor.ResetTarget()
    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, Boolean)
    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, Boolean)
    Object.Destroy(Object, Single)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, Boolean)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, Boolean)
    UnityEngine.Object.FindObjectsByType(System.Type, UnityEngine.FindObjectsSortMode)
    UnityEngine.Object.FindObjectsByType(System.Type, UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, Single)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsSortMode)
    UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
    UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
    Object.FindObjectOfType<T>()
    UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
    UnityEngine.Object.FindFirstObjectByType<T>()
    UnityEngine.Object.FindAnyObjectByType<T>()
    UnityEngine.Object.FindFirstObjectByType<T>(UnityEngine.FindObjectsInactive)
    UnityEngine.Object.FindAnyObjectByType<T>(UnityEngine.FindObjectsInactive)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    UnityEngine.Object.FindFirstObjectByType(System.Type)
    UnityEngine.Object.FindAnyObjectByType(System.Type)
    Object.FindObjectOfType(Type, Boolean)
    UnityEngine.Object.FindFirstObjectByType(System.Type, UnityEngine.FindObjectsInactive)
    UnityEngine.Object.FindAnyObjectByType(System.Type, UnityEngine.FindObjectsInactive)
    Object.ToString()
    Object.name
    Object.hideFlags
    Namespace: Unity.LiveCapture.Editor
    Syntax
    [CustomEditor(typeof(Connection), true)]
    public class ConnectionEditor : Editor, IPreviewable, IToolModeOwner
    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 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()
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)