private void DrawAxes(Hand hand, float alpha) { var pos = GetPosition(hand); var rot = GetRotation(hand); GizmoTools.DrawAxes(pos, rot, alpha); }
protected override void onDrawGizmo() { if (!target) { return; } GizmoTools.drawCylinderLineAdaptive(transform.position, target.position, radius, uSegments, vSize); }
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; }
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); }
protected override void onDrawGizmo() { GizmoTools.drawVectorText(text, transform, letterSize, textAnchor, textAlignment); }
protected override void onDrawGizmo() { GizmoTools.drawWireCylinder(transform, radius, height, pivot, uSegments, vSegments); }
protected override void onDrawGizmo() { GizmoTools.drawWeaponCone(transform, angleDegrees, range, degreesPerSegment, numRadialSegments); }
protected override void onDrawGizmo() { GizmoTools.drawVisionCone(transform, hFovDegrees, vFovDegrees, range, degreesPerSegment); }
protected override void onDrawGizmo() { GizmoTools.drawWireCube(transform, size, pivot, pivotAxes); }
protected override void onDrawGizmo() { GizmoTools.drawWireSphere(transform, radius, uSegments, vSegments); }
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); } }
protected override void onDrawGizmo() { GizmoTools.drawVectorTextLine(text, transform, letterSize); }