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.
Game Creator 3 logo Dialogue

Dialogue#

Game Creator / Dialogue / Dialogue

  • Can Read

  • Cannot Write

Description#

The Dialogue component attached to a Game Object

Code#

using System;
using UnityEngine;
using VisualScript.Icons;
using VisualScript.Runtime;

namespace GameCreator.Runtime.Dialogue
{
    [Get]

    [Inline(nameof(m_Value), typeof(Dialogue), true)]

    [Title("Dialogue")]
    [Category("Game Creator/Dialogue/Dialogue")]
    [Description("The Dialogue component attached to a Game Object")]

    [Image(typeof(IconDialogue), ColorTheme.Type.Blue)]
    [Keywords("Script", "Narration", "Text", "Conversation", "Story", "Lines", "Dialogue")]

    [Serializable]
    public class TypeGameObjectDialogue : TypeGameObject
    {
        [SerializeField] private Dialogue m_Value;

        public TypeGameObjectDialogue()
        {
            this.m_Value = null;
        }

        public TypeGameObjectDialogue(Dialogue component)
        {
            this.m_Value = component;
        }

        public override GameObject GetPreview(GameObject source) =>
            this.m_Value != null
                ? this.m_Value.gameObject
                : null;

        public override GameObject Get(Args args)
        {
            return this.m_Value != null
                ? this.m_Value.gameObject
                : null;
        }

        public override U Get<U>(Args args)
        {
            if (typeof(U) == typeof(Dialogue))
            {
                return this.m_Value != null
                    ? this.m_Value as U
                    : null;
            }

            return base.Get<U>(args);
        }

        public override string ToString()
        {
            return TextUtils.Name(this.m_Value);
        }

        protected override SubscriptionMode Subscription => SubscriptionMode.OnEditorChange;
    }
}
Game Creator 3 logoGame Creator 3 © Catsoft Works 2026. All rights reserved.