Documentation index for AI agents (llms.txt) A Markdown version of every page is available: request the page's source under /docs/, follow the "alternate" link in this page's head, or start from /llms.txt.
Visual Script logo Manual

Gizmo Circle#

Debug / Gizmos / Gizmo Circle

Description#

Displays a 2D circle gizmo in the scene

Parameters#

Name Description
Mode Whether to display a solid or a wireframe shape
Position The position of the shape
Rotation The rotation of the shape
Radius The radius of the shape
Color The color of the shape
Duration The amount of seconds the shape will be displayed

Code#

using System;
using UnityEngine;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Title("Gizmo Circle")]
    [Image(typeof(IconCircleSolid), ColorTheme.Type.Lime, typeof(Badge2D))]

    [Description("Displays a 2D circle gizmo in the scene")]
    [Category("Debug/Gizmos/Circle")]

    [Parameter("Mode", "Whether to display a solid or a wireframe shape")]
    [Parameter("Position", "The position of the shape")]
    [Parameter("Rotation", "The rotation of the shape")]
    [Parameter("Radius", "The radius of the shape")]
    [Parameter("Color", "The color of the shape")]
    [Parameter("Duration", "The amount of seconds the shape will be displayed")]

    [Keywords("Draw", "Debug", "Gizmo", "Disc", "Round", "2D")]

    [Serializable]
    public class InstructionCoreDebugGizmoCircle : Instruction
    {
        [SerializeField] private GizmoMode m_Mode = GizmoMode.Outline;
        [SerializeField] private GetVector3 m_Position = new GetVector3();
        [SerializeField] private GetQuaternion m_Rotation = new GetQuaternion();
        [SerializeField] private GetNumber m_Radius = new GetNumber(0.5f);
        [SerializeField] private GetColor m_Color = new GetColor(Color.green.SetAlpha(0.5f));
        [SerializeField] private GetNumber m_Duration = new GetNumber(1f);

        protected override string GetTitle(GameObject source) => $"Display {this.m_Mode} Circle at {this.m_Position}";

        protected override Awaitable Run(Args args)
        {
            GizmosManager.Circle(
                this.m_Position.Get(args),
                this.m_Rotation.Get(args),
                this.m_Radius.GetFloat(args),
                this.m_Color.Get(args),
                this.m_Mode,
                this.m_Duration.GetFloat(args)
            );

            return Done;
        }
    }
}
Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.