Select your preferred scripting language. All code snippets will be displayed in this language.
struct in UnityEngine.Experimental.Director
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseFor some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
CloseThe PlayableGraph is used to manage PlayableHandle creation, destruction and connections.
It is also used to create the PlayableOutput which connects the PlayableGraph to different systems.
isDone | Indicates that a graph has completed its operations. |
playableCount | Returns the number of PlayableHandle owned by the Graph. |
rootPlayableCount | Returns the number of PlayableHandle owned by the Graph that have no connected outputs. |
scriptOutputCount | Gets the number of ScriptPlayableOutput in the PlayableGraph. |
Connect | Connects two Playable instances, either by referencing the Playable instances themselves or by their PlayableHandles. |
CreateGenericMixerPlayable | Creates a generic ScriptPlayable mixer. |
CreatePlayable | This method allows you to create custom Playable instances. |
CreateScriptOutput | Creates a ScriptPlayableOutput in the [PlayableGraph]]. |
CreateScriptPlayable | Creates a ScriptPlayable in the PlayableGraph. |
Destroy | Destroys the graph. |
DestroyOutput | Destroys the PlayableOutput. |
DestroyPlayable | Destroys the Playable associated with this PlayableHandle. |
DestroySubgraph | Recursively destroys the given Playable and all children connected to its inputs. |
Disconnect | Disconnects PlayableHandle. The connections determine the topology of the PlayableGraph and how its is evaluated. |
Evaluate | Evaluates all the PlayableOutputs in the graph, and updates all the connected Playables in the graph. |
GetRootPlayable | Returns the PlayableHandle with no output connections at the given index. |
GetScriptOutput | Returns the ScriptPlayableOutput at the given index. |
IsValid | Returns true if the PlayableGraph has been properly constructed using PlayableGraph.CreateGraph and is not deleted. |
Play | Plays the graph. |
Stop | Stops the graph, if it is playing. |
CreateGraph | Creates a PlayableGraph. |