---
tags:
    - "Dialogue"
    - "Story"
    - "UI"
---

# Dialogue Skin

Game Creator / Dialogue / **Dialogue Skin**

<div class="grid cards" markdown>

* :green_circle: Can Read

* :red_circle: Cannot Write

</div>

## Description

A Dialogue Skin asset reference

## Code

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

namespace GameCreator.Runtime.Dialogue
{
    [Get]

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

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

    [Description("A Dialogue Skin asset reference")]
    [Image(typeof(IconDialogue), ColorTheme.Type.Blue, typeof(BadgeSkin))]

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

    [Serializable]
    public class TypeScriptableObjectDialogueSkin : TypeScriptableObject
    {
        [SerializeField] private DialogueSkin m_Value;

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

        public TypeScriptableObjectDialogueSkin() : this(null)
        { }

        public TypeScriptableObjectDialogueSkin(DialogueSkin 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;
    }
}
```

