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 Play#

Timeline / Playable Director / Playable Director Play Asset, Mode

Description#

Executes the Play method on the Playable Director component

Parameters#

Name Description
Asset
Mode

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
{
    [Title("Playable Director Play")]
    [Category("Timeline/Playable Director/Play", "Asset, Mode")]
    [Description("Executes the Play method on the Playable Director component")]

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

    [Parameter("Asset")]
    [Parameter("Mode")]

    [Serializable]
    public class GenInstructionPlayableDirector_Play_2_PlayableAssetAsset_DirectorWrapModeMode : Instruction
    {
        [SerializeField] private GetGameObject m_PlayableDirector = new GetGameObject(
            new GenTypeGameObject_PlayableDirector()
        );

        [SerializeField] private GetScriptableObject m_Asset = new GetScriptableObject();

        [SerializeField] private DirectorWrapMode m_Mode = default;

        protected override string GetTitle(GameObject source)
        {
            string method = TextUtils.ThemeAsKeyword("Play");
            return $"{this.m_PlayableDirector} {method} ({this.m_Asset}, {this.m_Mode})";
        }

        protected override Awaitable Run(Args args)
        {
            PlayableDirector component = this.m_PlayableDirector.Get<PlayableDirector>(args);
            if (component == null) return Done;

            component.Play(
                (PlayableAsset) this.m_Asset.Get(args),
                this.m_Mode
            );

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