Interactable runtime scene gizmo for uGUI
Switch branches/tags
Nothing to show
Clone or download
Latest commit c4d3cb8 Aug 17, 2018
Permalink
Failed to load latest commit information.
Plugins Minor bugfix Jul 11, 2018
LICENSE Initial commit Jul 11, 2018
README.md Update README.md Aug 17, 2018
RuntimeSceneGizmo.unitypackage Minor bugfix Jul 11, 2018
screenshot.png Initial commit Jul 11, 2018

README.md

Runtime Scene Gizmo for Unity

screenshot

Available on Asset Store: https://www.assetstore.unity3d.com/en/#!/content/123040

Forum Thread: https://forum.unity.com/threads/runtime-scene-gizmo-for-ugui-open-source.540011/

This plugin helps you display a runtime scene gizmo as a UI element in your Unity projects. An event is raised when a component of the gizmo is clicked.

HOW TO

Simply add Plugins/RuntimeSceneGizmo/Prefabs/GizmoRenderer to your UI canvas and position it as you like. Gizmo will always have 1:1 aspect ratio and, by default, will be placed at the top-right corner of GizmoRenderer. You can change the RenderTarget child object's pivot for a different placement.

To invoke a function when a gizmo component is clicked, use the On Component Clicked event of the GizmoRenderer object. Functions registered to this event should ideally take a GizmoComponent parameter (which is defined in RuntimeSceneGizmo namespace).

GizmoRenderer will automatically create an instance of SceneGizmo prefab in your scene. SceneGizmo uses a camera to render the gizmo to a RenderTexture, which is then used by the GizmoRenderer to display the gizmo on the canvas. By default, SceneGizmo objects use layer 24 but this can be adjusted via SceneGizmoController.GIZMOS_LAYER constant.

See Plugins/RuntimeSceneGizmo/Demo/DemoScene for an example scene.