UnityEditor.TransformManipulator.TransformData.DebugAlignment C# (CSharp) Method

DebugAlignment() public method

public DebugAlignment ( Quaternion targetRotation ) : void
targetRotation UnityEngine.Quaternion
return void
            public void DebugAlignment(Quaternion targetRotation)
            {
                Quaternion identity = Quaternion.identity;
                if (!TransformManipulator.individualSpace)
                {
                    identity = this.GetRefAlignment(targetRotation, this.rotation);
                }
                Vector3 position = this.transform.position;
                float num = HandleUtility.GetHandleSize(position) * 0.25f;
                Color color = Handles.color;
                Handles.color = Color.red;
                Vector3 vector = (Vector3) (((this.rotation * identity) * Vector3.right) * num);
                Handles.DrawLine(position - vector, position + vector);
                Handles.color = Color.green;
                vector = (Vector3) (((this.rotation * identity) * Vector3.up) * num);
                Handles.DrawLine(position - vector, position + vector);
                Handles.color = Color.blue;
                vector = (Vector3) (((this.rotation * identity) * Vector3.forward) * num);
                Handles.DrawLine(position - vector, position + vector);
                Handles.color = color;
            }