Version: Unity 6.1 Alpha (6000.1)
LanguageEnglish
  • C#

PlayableOutputExtensions

class in UnityEngine.Playables

/

Implemented in:UnityEngine.CoreModule

Suggest a change

Success!

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.

Close

Submission failed

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

Close

Cancel

Description

Extensions for all the types that implements IPlayableOutput.

Extension methods are static methods that can be called as if they were instance methods on the extended type.

using UnityEngine;
using UnityEngine.Playables;

public class ExamplePlayableBehaviour : PlayableBehaviour { void Start() { PlayableGraph graph = PlayableGraph.Create(); ScriptPlayableOutput scriptOutput = ScriptPlayableOutput.Create(graph, "MyOutput");

// Calling method PlayableExtensions.SetWeight on ScriptPlayableOutput as if it was an instance method. scriptOutput.SetWeight(10);

// The line above is the same as calling directly PlayableExtensions.SetDuration, but it is more compact and readable. PlayableOutputExtensions.SetWeight(scriptOutput, 10); } }

Static Methods

AddNotificationReceiverRegisters a new receiver that listens for notifications.
GetNotificationReceiversRetrieves the list of notification receivers currently registered on the output.
GetSourceOutputPortReturns the source playable's output connection index.
GetSourcePlayableReturns the source playable.
GetUserDataReturns the opaque user data. This is the same value as the last last argument of ProcessFrame.
GetWeightReturns the weight of the connection from the PlayableOutput to the source playable.
IsOutputNullReturns true if the PlayableOutput is null, false otherwise.
IsOutputValid
PushNotificationQueues a notification to be sent through the Playable system.
RemoveNotificationReceiverUnregisters a receiver on the output.
SetReferenceObjectSets the bound object to a new value. Used to associate an output to an object (Track asset in case of Timeline).
SetSourcePlayableSets which playable that computes the output and which sub-tree index.
SetUserDataSets the opaque user data. This same data is passed as the last argument to ProcessFrame.
SetWeightSets the weight of the connection from the PlayableOutput to the source playable.