/// <summary> /// Draw the gizmo. (Only call reference Gizmo-legal methods.) /// </summary> public override void DrawGizmo() { if (Next) { AnnotationUtil.DrawArrowGizmo(transform.position, Next.transform.position , 0, 0.5f, GizmoColor); } base.DrawGizmo(); }
/// <summary> /// Draw the gizmo. (Only call from Gizmo-legal methods.) /// </summary> public override void DrawGizmo() { foreach (var item in this) { if (item) { AnnotationUtil.DrawArrowGizmo( transform.position, item.transform.position, 0, 0.5f, GizmoColor); } } base.DrawGizmo(); }
/// <summary> /// Draw the standard marker gizmo. /// </summary> /// <param name="transform">The location of the gizmo.</param> /// <param name="range">The radius of the gizmo.</param> /// <param name="color">The gizmo color.</param> /// <param name="includeRotation"> /// If true the marker will be modified to include a forward direction indicator. /// </param> protected static void DrawStandardGizmo( Transform transform, float range, Color color, bool includeRotation) { AnnotationUtil.DrawCircleGizmo(transform, Vector3.zero, range, color); AnnotationUtil.DrawMarkerGizmo(transform, Vector3.zero, color, includeRotation); }