Version: 5.6
Experimental: this API is experimental and might be changed or removed in the future.

PlayableGraph

struct in UnityEngine.Experimental.Director

매뉴얼로 전환

설명

The 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.

변수

isDoneIndicates that a graph has completed its operations.
playableCountReturns the number of PlayableHandle owned by the Graph.
rootPlayableCountReturns the number of PlayableHandle owned by the Graph that have no connected outputs.
scriptOutputCountGets the number of ScriptPlayableOutput in the PlayableGraph.

Public 함수

ConnectConnects two Playable instances, either by referencing the Playable instances themselves or by their PlayableHandles.
CreateGenericMixerPlayableCreates a generic ScriptPlayable mixer.
CreatePlayableThis method allows you to create custom Playable instances.
CreateScriptOutputCreates a ScriptPlayableOutput in the [PlayableGraph]].
CreateScriptPlayableCreates a ScriptPlayable in the PlayableGraph.
DestroyDestroys the graph.
DestroyOutputDestroys the PlayableOutput.
DestroyPlayableDestroys the Playable associated with this PlayableHandle.
DestroySubgraphRecursively destroys the given Playable and all children connected to its inputs.
DisconnectDisconnects PlayableHandle. The connections determine the topology of the PlayableGraph and how its is evaluated.
EvaluateEvaluates all the PlayableOutputs in the graph, and updates all the connected Playables in the graph.
GetRootPlayableReturns the PlayableHandle with no output connections at the given index.
GetScriptOutputReturns the ScriptPlayableOutput at the given index.
IsValidReturns true if the PlayableGraph has been properly constructed using PlayableGraph.CreateGraph and is not deleted.
PlayPlays the graph.
StopStops the graph, if it is playing.

정적 함수

CreateGraphCreates a PlayableGraph.