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

Script#

Game Creator / Dialogue / Script

  • Can Read

  • Cannot Write

Description#

A Script asset reference

Code#

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

namespace GameCreator.Runtime.Dialogue
{
    [Get]

    [Inline(nameof(m_Value), typeof(Script), false)]

    [Title("Script")]
    [Category("Game Creator/Dialogue/Script")]

    [Description("A Script asset reference")]
    [Image(typeof(IconScriptSolid), ColorTheme.Type.Yellow)]

    [Keywords("Dialogue", "Story")]

    [Serializable]
    public class TypeScriptableObjectScript : TypeScriptableObject
    {
        [SerializeField] private Script m_Value;

        public override ScriptableObject GetPreview(GameObject source) => this.m_Value;

        public TypeScriptableObjectScript() : this(null)
        { }

        public TypeScriptableObjectScript(Script value)
        {
            this.m_Value = value;
        }

        public override ScriptableObject Get(Args args)
        {
            return this.m_Value;
        }

        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.