Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Destroy<U>(U)

Destroys the current Playable.
Read time 1 minuteLast updated 8 days ago

Definition

Destroy<T>(T)

public static void Destroy<U>(this U playable) where U : struct, IPlayable

Parameters

playable

T
The Playable used by this operation.

Remarks

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.
Use this templated extension method on any type that inherits from IPlayable.