docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ActivationControlPlayable

    Playable that controls the active state of a GameObject.

    Inheritance
    object
    PlayableBehaviour
    ActivationControlPlayable
    Implements
    IPlayableBehaviour
    ICloneable
    Inherited Members
    PlayableBehaviour.OnGraphStop(Playable)
    PlayableBehaviour.OnPlayableCreate(Playable)
    PlayableBehaviour.OnBehaviourDelay(Playable, FrameData)
    PlayableBehaviour.PrepareData(Playable, FrameData)
    PlayableBehaviour.PrepareFrame(Playable, FrameData)
    PlayableBehaviour.Clone()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Timeline
    Assembly: Unity.Timeline.dll
    Syntax
    public class ActivationControlPlayable : PlayableBehaviour, IPlayableBehaviour, ICloneable

    Fields

    gameObject

    The GameObject to control.

    Declaration
    public GameObject gameObject
    Field Value
    Type Description
    GameObject

    postPlayback

    The state of a GameObject's activeness when a PlayableGraph stops.

    Declaration
    public ActivationControlPlayable.PostPlaybackState postPlayback
    Field Value
    Type Description
    ActivationControlPlayable.PostPlaybackState

    Methods

    Create(PlayableGraph, GameObject, PostPlaybackState)

    Creates a ScriptPlayable with an ActivationControlPlayable behaviour attached

    Declaration
    public static ScriptPlayable<ActivationControlPlayable> Create(PlayableGraph graph, GameObject gameObject, ActivationControlPlayable.PostPlaybackState postPlaybackState)
    Parameters
    Type Name Description
    PlayableGraph graph

    PlayableGraph that will own the playable

    GameObject gameObject

    The GameObject that triggered the graph build

    ActivationControlPlayable.PostPlaybackState postPlaybackState

    The state to leave the gameObject after the graph is stopped

    Returns
    Type Description
    ScriptPlayable<ActivationControlPlayable>

    Returns a playable that controls activation of a game object

    OnBehaviourPause(Playable, FrameData)

    This function is called when the Playable play state is changed to PlayState.Paused.

    Declaration
    public override void OnBehaviourPause(Playable playable, FrameData info)
    Parameters
    Type Name Description
    Playable playable

    The playable this behaviour is attached to.

    FrameData info

    The information about this frame

    Overrides
    PlayableBehaviour.OnBehaviourPause(Playable, FrameData)

    OnBehaviourPlay(Playable, FrameData)

    This function is called when the Playable play state is changed to Playables.PlayState.Playing.

    Declaration
    public override void OnBehaviourPlay(Playable playable, FrameData info)
    Parameters
    Type Name Description
    Playable playable

    The playable this behaviour is attached to.

    FrameData info

    The information about this frame

    Overrides
    PlayableBehaviour.OnBehaviourPlay(Playable, FrameData)

    OnGraphStart(Playable)

    This function is called when the PlayableGraph that owns this PlayableBehaviour starts.

    Declaration
    public override void OnGraphStart(Playable playable)
    Parameters
    Type Name Description
    Playable playable

    The playable this behaviour is attached to.

    Overrides
    PlayableBehaviour.OnGraphStart(Playable)

    OnPlayableDestroy(Playable)

    This function is called when the Playable that owns the PlayableBehaviour is destroyed.

    Declaration
    public override void OnPlayableDestroy(Playable playable)
    Parameters
    Type Name Description
    Playable playable

    The playable this behaviour is attached to.

    Overrides
    PlayableBehaviour.OnPlayableDestroy(Playable)

    ProcessFrame(Playable, FrameData, object)

    This function is called during the ProcessFrame phase of the PlayableGraph.

    Declaration
    public override void ProcessFrame(Playable playable, FrameData info, object userData)
    Parameters
    Type Name Description
    Playable playable

    The playable this behaviour is attached to.

    FrameData info

    A FrameData structure that contains information about the current frame context.

    object userData

    unused

    Overrides
    PlayableBehaviour.ProcessFrame(Playable, FrameData, object)

    Implements

    IPlayableBehaviour
    ICloneable
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)