Class PySideExample
This is a simplified example of how to create a menu item to launch a python client that then connects back to Unity.
Namespace: PythonExample
Syntax
public class PySideExample
Methods
OnHierarchyChanged()
Called by the editor when the scene hierarchy changed (an object got created, deleted, or reparented).
Declaration
public static void OnHierarchyChanged()
OnMenuClick()
Menu to launch the client
Declaration
[MenuItem("Python/Examples/PySide Example")]
public static void OnMenuClick()
Subscribe()
Called by the client when it's been spawned, to register to the hierarchyChanged event.
Declaration
public static void Subscribe()