RuntimeColliderGizmos.cs 456 B

1234567891011121314151617181920
  1. using System;
  2. using UnityEngine;
  3. namespace Leap.Unity.RuntimeGizmos
  4. {
  5. public class RuntimeColliderGizmos : MonoBehaviour, IRuntimeGizmoComponent
  6. {
  7. public void OnDrawRuntimeGizmos(RuntimeGizmoDrawer drawer)
  8. {
  9. drawer.color = this.color;
  10. drawer.DrawColliders(base.gameObject, this.useWireframe, this.traverseHierarchy);
  11. }
  12. public Color color = Color.white;
  13. public bool useWireframe = true;
  14. public bool traverseHierarchy = true;
  15. }
  16. }