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.

PlayableExtensions.Destroy

public static void Destroy(U playable);

Parameters

playable The Playable used by this operation.

Description

Destroys the current Playable.

NOTE: This is a templated extension method that can be used on any type that inherits from IPlayable

NOTE: Any other Playables connected to the destroyed Playable's output ports will be orphaned; they will still exist in the PlayableGraph, but will not be updated until they are connected to a graph branch that is connected to a PlayableOutput.

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