docs.unity.cn
    Show / Hide Table of Contents

    Class GraphLogicEditor

    GraphLogicEditor implements the inspector panel for SystemGraph assets. Implements the Editor

    Inheritance
    Object
    Object
    ScriptableObject
    Editor
    GraphLogicEditor
    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.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)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, Single)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
    Object.FindObjectOfType<T>()
    UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindObjectOfType(Type, Boolean)
    Object.ToString()
    Object.name
    Object.hideFlags
    Namespace: Mechatronics.SystemGraph
    Syntax
    [CustomEditor(typeof(SystemGraphComponent))]
    [InitializeOnLoad]
    public class GraphLogicEditor : Editor, IPreviewable, IToolModeOwner

    Methods

    AddStyleSheetPath(VisualElement, String)

    Adds the style sheet path.

    Declaration
    public static void AddStyleSheetPath(VisualElement visualElement, string path)
    Parameters
    Type Name Description
    VisualElement visualElement

    The visual element to stylize.

    String path

    The path.

    GUIExtension(SystemGraphComponent)

    GUI extension inspector

    Declaration
    public bool GUIExtension(SystemGraphComponent obj)
    Parameters
    Type Name Description
    SystemGraphComponent obj

    SystemGraphComponent owner.

    Returns
    Type Description
    Boolean

    true if gui extension has refreshed the scene, false otherwise.

    LoadImage(String)

    Loads the image.

    Declaration
    public static Texture2D LoadImage(string text)
    Parameters
    Type Name Description
    String text

    The image file name.

    Returns
    Type Description
    Texture2D

    Texture2D from file name.

    LoadStyleSheet(String)

    Loads the style sheet.

    Declaration
    public static StyleSheet LoadStyleSheet(string text)
    Parameters
    Type Name Description
    String text

    File name.

    Returns
    Type Description
    StyleSheet

    StyleSheet from file name.

    LoadUXML(String)

    Loads the uxml.

    Declaration
    public static VisualTreeAsset LoadUXML(string text)
    Parameters
    Type Name Description
    String text

    File name.

    Returns
    Type Description
    VisualTreeAsset

    VisualTreeAsset from file name.

    OnDisable()

    Called when [disable].

    Declaration
    public void OnDisable()

    OnEnable()

    Called when [enable].

    Declaration
    public void OnEnable()

    OnInspectorGUI()

    Implement this function to make a custom inspector.

    Declaration
    public override void OnInspectorGUI()
    Overrides
    Editor.OnInspectorGUI()

    UXMLResourceToPackage(String)

    Retrieve Uxml resource path

    Declaration
    public static string UXMLResourceToPackage(string resourcePath)
    Parameters
    Type Name Description
    String resourcePath

    The resource path.

    Returns
    Type Description
    String

    The full path to the uxml file

    See Also

    Editor
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, October 18, 2022
    Terms of use