Class GraphLogicEditor
GraphLogicEditor implements the inspector panel for SystemGraph assets. Implements the Editor
Inherited Members
UnityEditor.Editor.Cleanup()
UnityEditor.Editor.MoveNextTarget()
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
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 |
|
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
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 |