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

Script language

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

PlayableBehaviour.OnPlayableDestroy

public void OnPlayableDestroy(Playables.Playable playable);

Parameters

playable The Playable that owns the current PlayableBehaviour.

Description

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

The playable can be destroyed with PlayableExtensions.Destroy.

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