Пример #1
0
        private void DrawAxes(Hand hand, float alpha)
        {
            var pos = GetPosition(hand);
            var rot = GetRotation(hand);

            GizmoTools.DrawAxes(pos, rot, alpha);
        }
Пример #2
0
 protected override void onDrawGizmo()
 {
     if (!target)
     {
         return;
     }
     GizmoTools.drawCylinderLineAdaptive(transform.position, target.position, radius, uSegments, vSize);
 }
Пример #3
0
    void OnDrawGizmos()
    {
        var oldColor = Gizmos.color;

        Gizmos.color = color;
        //GizmoTools.drawVisionCone(transform, viewConeHFov, viewConeVFov, viewConeRange, viewConeDegreesPerSegment);
        //GizmoTools.drawVectorTextLine(textString, transform, debugTextSize);
        GizmoTools.drawVectorText(textString, transform, debugTextSize, textAnchor, textAlign);
        Gizmos.color = oldColor;
    }
Пример #4
0
    protected override void onDrawGizmo()
    {
        if (!target)
        {
            return;
        }
        var start = reverse ? transform.position: target.position;
        var end   = reverse ? target.position: transform.position;

        GizmoTools.drawConeLineAdaptive(start, end, radius, uSegments, vSize);
    }
Пример #5
0
 protected override void onDrawGizmo()
 {
     GizmoTools.drawVectorText(text, transform, letterSize, textAnchor, textAlignment);
 }
Пример #6
0
 protected override void onDrawGizmo()
 {
     GizmoTools.drawWireCylinder(transform, radius, height, pivot, uSegments, vSegments);
 }
Пример #7
0
 protected override void onDrawGizmo()
 {
     GizmoTools.drawWeaponCone(transform, angleDegrees, range, degreesPerSegment, numRadialSegments);
 }
Пример #8
0
 protected override void onDrawGizmo()
 {
     GizmoTools.drawVisionCone(transform, hFovDegrees, vFovDegrees, range, degreesPerSegment);
 }
Пример #9
0
 protected override void onDrawGizmo()
 {
     GizmoTools.drawWireCube(transform, size, pivot, pivotAxes);
 }
Пример #10
0
 protected override void onDrawGizmo()
 {
     GizmoTools.drawWireSphere(transform, radius, uSegments, vSegments);
 }
Пример #11
0
 public void SetType(GizmoTools type)
 {
     Type = type;
     if (Axis != GizmoAxis.Center)
     {
         PositionCap.SetActive(type == GizmoTools.Position);
         RotationCap.SetActive(type == GizmoTools.Rotation);
         ScaleCap.SetActive(type == GizmoTools.Scale);
     }
 }
Пример #12
0
 protected override void onDrawGizmo()
 {
     GizmoTools.drawVectorTextLine(text, transform, letterSize);
 }