Legacy Documentation: Version 2017.2 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

PrefabControlPlayable

class in UnityEngine.Timeline

/

Inherits from:Playables.PlayableBehaviour

Description

Playable that controls and instantiates a Prefab.

Properties

prefabInstanceThe instance of the prefab that has been generated for this playable.

Inherited Members

Public Methods

OnBehaviourPauseThis function is called when the Playable play state is changed to PlayState.Paused.
OnBehaviourPlayThis function is called when the Playable play state is changed to PlayState.Playing.
OnGraphStartThis function is called when the PlayableGraph that owns this PlayableBehaviour starts.
OnGraphStopThis function is called when the PlayableGraph that owns this PlayableBehaviour stops.
OnPlayableCreateThis function is called when the Playable that owns the PlayableBehaviour is created.
OnPlayableDestroyThis function is called when the Playable that owns the PlayableBehaviour is destroyed.
PrepareFrameThis function is called during the PrepareFrame phase of the PlayableGraph.
ProcessFrameThis function is called during the ProcessFrame phase of the PlayableGraph.

Did you find this page useful? Please give it a rating: