Tanoda
Leap.Unity.RuntimeGizmos.RuntimeGizmoManager Class Reference
Inheritance diagram for Leap.Unity.RuntimeGizmos.RuntimeGizmoManager:

Static Public Member Functions

static bool TryGetGizmoDrawer (out RuntimeGizmoDrawer drawer)
 Tries to get a gizmo drawer. Will fail if there is no Gizmo manager in the scene, or if it is disabled. More...
 
static bool TryGetGizmoDrawer (GameObject attatchedGameObject, out RuntimeGizmoDrawer drawer)
 Tries to get a gizmo drawer for a given gameObject. Will fail if there is no gizmo manager in the scene, or if it is disabled. Will also fail if there is a disable RuntimeGizmoToggle as a parent of the gameObject. More...
 

Static Public Attributes

const string DEFAULT_SHADER_NAME = "Hidden/Runtime Gizmos"
 
const int CIRCLE_RESOLUTION = 32
 

Protected Member Functions

virtual void OnValidate ()
 
virtual void Reset ()
 
virtual void OnEnable ()
 
virtual void OnDisable ()
 
virtual void Update ()
 
void onPostRender (Camera camera)
 

Static Protected Member Functions

static bool areGizmosDisabled (Transform transform)
 

Protected Attributes

bool _displayInGameView = true
 
bool _enabledForBuild = true
 
Mesh _sphereMesh
 
Shader _gizmoShader
 
Mesh _cubeMesh
 
Mesh _wireCubeMesh
 
Mesh _wireSphereMesh
 

Static Protected Attributes

static RuntimeGizmoDrawer _backDrawer = null
 
static RuntimeGizmoDrawer _frontDrawer = null
 

Events

static Action< RuntimeGizmoDrawerOnPostRenderGizmos
 Subscribe to this event if you want to draw gizmos after rendering is complete. Doing gizmo rendering inside of the normal Camera.onPostRender event will cause rendering artifacts. More...
 

Detailed Description

Definition at line 26 of file RuntimeGizmoManager.cs.

Member Function Documentation

◆ areGizmosDisabled()

static bool Leap.Unity.RuntimeGizmos.RuntimeGizmoManager.areGizmosDisabled ( Transform  transform)
staticprotected

Definition at line 216 of file RuntimeGizmoManager.cs.

◆ OnDisable()

virtual void Leap.Unity.RuntimeGizmos.RuntimeGizmoManager.OnDisable ( )
protectedvirtual

Definition at line 139 of file RuntimeGizmoManager.cs.

◆ OnEnable()

virtual void Leap.Unity.RuntimeGizmos.RuntimeGizmoManager.OnEnable ( )
protectedvirtual

Definition at line 114 of file RuntimeGizmoManager.cs.

◆ onPostRender()

void Leap.Unity.RuntimeGizmos.RuntimeGizmoManager.onPostRender ( Camera  camera)
protected

Definition at line 172 of file RuntimeGizmoManager.cs.

◆ OnValidate()

virtual void Leap.Unity.RuntimeGizmos.RuntimeGizmoManager.OnValidate ( )
protectedvirtual

Definition at line 93 of file RuntimeGizmoManager.cs.

◆ Reset()

virtual void Leap.Unity.RuntimeGizmos.RuntimeGizmoManager.Reset ( )
protectedvirtual

Definition at line 110 of file RuntimeGizmoManager.cs.

◆ TryGetGizmoDrawer() [1/2]

static bool Leap.Unity.RuntimeGizmos.RuntimeGizmoManager.TryGetGizmoDrawer ( GameObject  attatchedGameObject,
out RuntimeGizmoDrawer  drawer 
)
static

Tries to get a gizmo drawer for a given gameObject. Will fail if there is no gizmo manager in the scene, or if it is disabled. Will also fail if there is a disable RuntimeGizmoToggle as a parent of the gameObject.

The gizmo matrix will be set to the identity matrix. The gizmo color will be set to white.

Definition at line 83 of file RuntimeGizmoManager.cs.

◆ TryGetGizmoDrawer() [2/2]

static bool Leap.Unity.RuntimeGizmos.RuntimeGizmoManager.TryGetGizmoDrawer ( out RuntimeGizmoDrawer  drawer)
static

Tries to get a gizmo drawer. Will fail if there is no Gizmo manager in the scene, or if it is disabled.

The gizmo matrix will be set to the identity matrix. The gizmo color will be set to white.

Definition at line 65 of file RuntimeGizmoManager.cs.

◆ Update()

virtual void Leap.Unity.RuntimeGizmos.RuntimeGizmoManager.Update ( )
protectedvirtual

Definition at line 148 of file RuntimeGizmoManager.cs.

Member Data Documentation

◆ _backDrawer

RuntimeGizmoDrawer Leap.Unity.RuntimeGizmos.RuntimeGizmoManager._backDrawer = null
staticprotected

Definition at line 48 of file RuntimeGizmoManager.cs.

◆ _cubeMesh

Mesh Leap.Unity.RuntimeGizmos.RuntimeGizmoManager._cubeMesh
protected

Definition at line 46 of file RuntimeGizmoManager.cs.

◆ _displayInGameView

bool Leap.Unity.RuntimeGizmos.RuntimeGizmoManager._displayInGameView = true
protected

Definition at line 32 of file RuntimeGizmoManager.cs.

◆ _enabledForBuild

bool Leap.Unity.RuntimeGizmos.RuntimeGizmoManager._enabledForBuild = true
protected

Definition at line 36 of file RuntimeGizmoManager.cs.

◆ _frontDrawer

RuntimeGizmoDrawer Leap.Unity.RuntimeGizmos.RuntimeGizmoManager._frontDrawer = null
staticprotected

Definition at line 49 of file RuntimeGizmoManager.cs.

◆ _gizmoShader

Shader Leap.Unity.RuntimeGizmos.RuntimeGizmoManager._gizmoShader
protected

Definition at line 44 of file RuntimeGizmoManager.cs.

◆ _sphereMesh

Mesh Leap.Unity.RuntimeGizmos.RuntimeGizmoManager._sphereMesh
protected

Definition at line 40 of file RuntimeGizmoManager.cs.

◆ _wireCubeMesh

Mesh Leap.Unity.RuntimeGizmos.RuntimeGizmoManager._wireCubeMesh
protected

Definition at line 46 of file RuntimeGizmoManager.cs.

◆ _wireSphereMesh

Mesh Leap.Unity.RuntimeGizmos.RuntimeGizmoManager._wireSphereMesh
protected

Definition at line 46 of file RuntimeGizmoManager.cs.

◆ CIRCLE_RESOLUTION

const int Leap.Unity.RuntimeGizmos.RuntimeGizmoManager.CIRCLE_RESOLUTION = 32
static

Definition at line 28 of file RuntimeGizmoManager.cs.

◆ DEFAULT_SHADER_NAME

const string Leap.Unity.RuntimeGizmos.RuntimeGizmoManager.DEFAULT_SHADER_NAME = "Hidden/Runtime Gizmos"
static

Definition at line 27 of file RuntimeGizmoManager.cs.

Event Documentation

◆ OnPostRenderGizmos

Action<RuntimeGizmoDrawer> Leap.Unity.RuntimeGizmos.RuntimeGizmoManager.OnPostRenderGizmos
static

Subscribe to this event if you want to draw gizmos after rendering is complete. Doing gizmo rendering inside of the normal Camera.onPostRender event will cause rendering artifacts.

Definition at line 56 of file RuntimeGizmoManager.cs.


The documentation for this class was generated from the following file: