A wrapper for Playables that allows some reverse traversal of the playable graph, and easy disconnection / reconnection of timeline track ports.
More...
|
| List< int > | GetListConnectedInputs () |
| | Lets you obtain a list of connected inputs.
|
| int | GetTrackPort (TrackAsset trackAsset) |
| | Allows you to find out what port corresponds to a given trackAsset. Use ONLY if this node is wrapping a TimelinePlayable.
|
| bool | IsPortConnected (int port, bool isOutputPort) |
| | Query a port for its connection status.
|
| int | GetConnectedInputCount () |
| | Gets a count of all connected inputs.
|
| void | DisconnectTrack (TrackAsset track) |
| | Pass in a trackasset to disconnect the corresponding output.
|
| int | GetOutputCount () |
| void | AddInput (PlayableNode sourceNode, int sourceOutputPort, float weight=0f, bool useAvailiablePorts=true) |
| | Create a new connection. If there is a free port to connect to, that will be used instead of creating a new one.
|
| float | GetInputWeight (int port) |
| | Get the current weight of an input port.
|
| Playable | GetPlayable () |
| | Get the wrapped Playable.
|
|
|
Action | OnConnectInput |
| | Event triggered by a new connection.
|
|
Action | OnDisconnectInput |
| | Event triggered by a new disconnection.
|
|
|
string | Name [get, set] |
| | Set the Name of the node.
|
A wrapper for Playables that allows some reverse traversal of the playable graph, and easy disconnection / reconnection of timeline track ports.
◆ AddInput()
| void TimelineMixer.PlayableNode.AddInput |
( |
PlayableNode | sourceNode, |
|
|
int | sourceOutputPort, |
|
|
float | weight = 0f, |
|
|
bool | useAvailiablePorts = true ) |
|
inline |
Create a new connection. If there is a free port to connect to, that will be used instead of creating a new one.
- Parameters
-
| sourceNode | The PlayableNode to be connected |
| sourceOutputPort | The output port on the source node that will be connected |
| weight | The weight of this connection. 0 = no effect, 1 = full effect. |
◆ DisconnectTrack()
| void TimelineMixer.PlayableNode.DisconnectTrack |
( |
TrackAsset | track | ) |
|
|
inline |
Pass in a trackasset to disconnect the corresponding output.
- Parameters
-
| track | The trackAsset to disconnect. |
◆ GetConnectedInputCount()
| int TimelineMixer.PlayableNode.GetConnectedInputCount |
( |
| ) |
|
|
inline |
Gets a count of all connected inputs.
- Returns
- Returns an int value of the total amount of connected inputs.
◆ GetInputWeight()
| float TimelineMixer.PlayableNode.GetInputWeight |
( |
int | port | ) |
|
|
inline |
Get the current weight of an input port.
- Parameters
-
- Returns
- Returns a float value 0 - 1
◆ GetListConnectedInputs()
| List< int > TimelineMixer.PlayableNode.GetListConnectedInputs |
( |
| ) |
|
|
inline |
Lets you obtain a list of connected inputs.
- Returns
- Returns a List<int> of connected input ports.
◆ GetOutputCount()
| int TimelineMixer.PlayableNode.GetOutputCount |
( |
| ) |
|
|
inline |
◆ GetPlayable()
| Playable TimelineMixer.PlayableNode.GetPlayable |
( |
| ) |
|
|
inline |
Get the wrapped Playable.
- Returns
- Returns the Playable this node represents
◆ GetTrackPort()
| int TimelineMixer.PlayableNode.GetTrackPort |
( |
TrackAsset | trackAsset | ) |
|
|
inline |
Allows you to find out what port corresponds to a given trackAsset. Use ONLY if this node is wrapping a TimelinePlayable.
- Parameters
-
| trackAsset | The TrackAsset that should have a port allocated on this TimelineNode |
- Returns
◆ IsPortConnected()
| bool TimelineMixer.PlayableNode.IsPortConnected |
( |
int | port, |
|
|
bool | isOutputPort ) |
|
inline |
Query a port for its connection status.
- Parameters
-
| port | The port to query. |
| isOutputPort | True if finding information about an output port. |
- Returns
- Returns true or false, depending if the given port is connected or not.