Esempio n. 1
0
 private void OnDrawGizmosSelected()
 {
     foreach (Vector3 position in this.Positions)
     {
         GizmosEx.DrawWireArc(position, 1.0f);
         GizmosEx.DrawArrow(position, position + Vector3.up);
     }
 }
Esempio n. 2
0
        private void OnDrawGizmos()
        {
            Vector3 pos  = this.worldSpacePlayerBounds.center;
            Vector3 size = this.worldSpacePlayerBounds.size;

            Gizmos.color = Color.red;
            Gizmos.DrawWireCube(pos, size);
            GizmosEx.DrawArrow(pos, pos + this.Forward.normalized, 0.1f);
        }
Esempio n. 3
0
    protected virtual void OnDrawGizmos()
    {
        Gizmos.color = Color.red;

        GizmosEx.DrawCross(base.transform.position, 1);

        Gizmos.color = Color.green;

        GizmosEx.DrawArrow(base.transform.position, base.transform.position + new Vector3(1, 1, 1) * 3);
    }
Esempio n. 4
0
        private void OnDrawGizmos()
        {
            GizmosEx.PushMatrix(this.transform.localToWorldMatrix);
            GizmosEx.PushColor(Color.red);
            GizmosEx.DrawXYWirePlane(this.Width, this.Height);
            GizmosEx.PopColor();
            GizmosEx.PopMatrix();
            GizmosEx.PopMatrix();

            GizmosEx.PushColor(Color.cyan);
            GizmosEx.DrawArrow(this.LastProjectedPoint, this.LastProjectedPoint + this.LastProjectedVector);
            GizmosEx.PopColor();
        }
Esempio n. 5
0
        /// <summary>
        /// Gizmo の描画時に呼び出されます。
        /// </summary>
        protected override void OnDrawGizmos()
        {
            if (!this.drawGizmo)
            {
                return;
            }

            Color previousColor = Gizmos.color;

            Gizmos.color = this.gizmoColor;
            Gizmos.DrawWireCube(this.bounds.center, this.bounds.size);
            GizmosEx.DrawArrow(base.bounds.center, base.transform.rotation * Vector3Ex.Up * this.gizmoArrowLength);
            Gizmos.color = previousColor;
        }