Search Unity

Question Trying to query PlayableGraph to determine sourceOutput/targetInput ports

Discussion in 'Animation' started by kanesteven, Feb 11, 2023.

  1. kanesteven

    kanesteven

    Joined:
    Aug 30, 2018
    Posts:
    45
    When constructing a playable graph, all connections are created (ultimately) by calls to PlayableGraph.Connect(sourceOutputPort, source, targetInputPort, target).

    However, once these connections have been made, I see no API to query a graph or playable to determine what port connections have been made. The only thing I see is the ability to query the inputs/outputs on a playable by port index and get back a playable that is connected to that port. That is not enough! You surely also may need/want to know what port that connection is made to on the connected playable.

    Am I crazy? Someone please tell me I am crazy and that this is possible. If it is not, I do not see how it is currently possible to make a correct Visualizer for PlayableGraphs nor is it even possible to fully inspect the connection-topology of a playablegraph once constructed.

    Thanks in advance.
    Steve