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

Playable Director#

Components / Timeline / Playable Director

  • Can Read

  • Cannot Write

Description#

A direct reference to a Playable Director component

Code#

// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>

using System;
using UnityEngine;
using VisualScript.Icons;
using UnityEngine.Playables;

namespace VisualScript.Runtime
{
    [Get]

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

    [Title("Playable Director")]
    [Category("Components/Timeline/Playable Director")]
    [Description("A direct reference to a Playable Director component")]

    [Image(typeof(IconDirector), ColorTheme.Type.Teal)]
    [Keywords("Timeline, Cutscene, Cinematic, Sequence")]

    [Serializable]
    public class GenTypeGameObject_PlayableDirector : TypeGameObject
    {
        [SerializeField] private PlayableDirector m_Value;

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

        public GenTypeGameObject_PlayableDirector()
        { }

        public GenTypeGameObject_PlayableDirector(PlayableDirector component)
        {
            this.m_Value = component;
        }

        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(PlayableDirector))
            {
                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;
    }
}
Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.