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

PlayableHandle

struct in UnityEngine.Experimental.Director

매뉴얼로 전환

설명

Handle representing a Playable created in a PlayableGraph. The PlayableHandle implements all general usage Playable methods.

Some Playables are implemented as internal C++ objects but are exposed as C# structs. Using PlayableHandle allows for the possibility of creating Playable graphs without allocating memory in your C# scripts that might later require garbage collection. One downside of using structs as opposed to classes is that structs in C# do not support inheritance. The GetObject method allows you to convert a Playable into its C# class type.

정적 변수

NullUsed to compare PlayableHandles.

변수

durationThe duration of the Playable in seconds.
graphThe PlayableGraph that created the playable.
inputCountGets and Sets the number of inputs for the Playable.
isDoneA flag indicating that a playable has completed its operation.
outputCountGets and Sets the number of outputs for the Playable.
playStateWhen playing, the time will advance in the Playable during evaluation of the graph.
speedModulates how time is incremented when the Playable is playing.
timeThe current time of the Playable.

Public 함수

DestroyDestroys the Playable associated with this PlayableHandle.
GetInputReturns the PlayableHandle connected at the given input port index.
GetInputWeightReturns the weight of the Playable connected at the given input port index.
GetObjectReturns a Playable representation of the handle.
GetOutputReturns the PlayableHandle connected at the given ouput port index.
IsValidReturns true if the Playable is properly constructed by the PlayableGraph and has not been destroyed.
SetInputWeightSets the weight of the Playable connected at the given input port index.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961