Tanoda
RuntimeColliderGizmos.cs
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (C) Ultraleap, Inc. 2011-2020. *
3 * *
4 * Use subject to the terms of the Apache License 2.0 available at *
5 * http://www.apache.org/licenses/LICENSE-2.0, or another agreement *
6 * between Ultraleap and you, your company or other organization. *
7 ******************************************************************************/
8
9using UnityEngine;
10
12
13 public class RuntimeColliderGizmos : MonoBehaviour, IRuntimeGizmoComponent {
14
15 public Color color = Color.white;
16 public bool useWireframe = true;
17 public bool traverseHierarchy = true;
18 public bool drawTriggers = false;
19
23 void Start() { }
24
26 if (!this.gameObject.activeInHierarchy
27 || !this.enabled) return;
28
29 drawer.color = color;
31 }
32 }
33}
UnityEngine.Color Color
Definition: TestScript.cs:32
void OnDrawRuntimeGizmos(RuntimeGizmoDrawer drawer)
void DrawColliders(GameObject gameObject, bool useWireframe=true, bool traverseHierarchy=true, bool drawTriggers=false)
Color color
Sets or gets the color for the gizmos that will be drawn next.
Have your MonoBehaviour implement this interface to be able to draw runtime gizmos....