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

Timeline / Playable Director / Playable Director Played

Description#

Executes whenever the Played event of Playable Director component is invoked

Parameters#

Name Description
Source

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 Played")]
    [Category("Timeline/Playable Director/Played")]
    [Description("Executes whenever the Played event of Playable Director component is invoked")]

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

    [Parameter("Source")]

    [Serializable]
    public class GenTriggerPlayableDirector_Played : TriggerSourceComponentBase<PlayableDirector>
    {

        public GenTriggerPlayableDirector_Played() : base(new GenTypeGameObject_PlayableDirector())
        { }

        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Played");
            return $"{this.SourceName} {member}";
        }

        protected override void OnSourceChanged(PlayableDirector previousSource, PlayableDirector newSource)
        {
            if (previousSource != null)
            {
                previousSource.played -= this.Run;
            }

            if (newSource != null)
            {
                newSource.played += this.Run;
            }
        }

        private void Run(PlayableDirector value1)
        {
            using Args args = Args.Get(
                this.Component,
                this.m_CurrentSource
            );

            this.Run(args);
        }
    }
}
Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.