After upgrading to Unity 6000, my PlayableGraph Monitor is not displaying correctly.
In Unity 2019~2022 versions, the PlayableGraphView should fill the entire yellow box area, but in Unity 6000, its height has become 0. Please refer to the image below.
I can add height=100%
in the style to solve this issue, but I would like to know why this change occurred and if there are any other properties that may be affected.
Related code: UnityPlayableGraphMonitorTool/Editor/Scripts/Window/PlayableGraphMonitorWindow_GraphView.cs at 454cca0765e6f4b44832b25805739d066278a454 · SolarianZ/UnityPlayableGraphMonitorTool · GitHub
There was a lot of bugs fixed recently in the layout engine. Most cases of similar cases were cause by an undefined behavior described in the spec when a child sized depends on the parent and the parent depends on the child. That is probably the case if the graph container depends on the playableGraphView, and the playableGraphView try to fill the graph container…
Can you verify that the graph container is also shrinking when the playableGraphView shrink to confirm this?
The UIToolkit Debugger shows that the graph container fills its entire parent element (i.e., rootVisualElement).

Here is the code I used to create the graph container:

With the flexDirection = FlexDirection.Row
and alignItems=Align.FlexStart
you are specifically asking the PlayableGraphView to use it’s intrinsic size vertically and be set aligned at the top of the vertical container.
Assuming everything is in absolute positioning in PlayableGraphView, the intrinsic size would be 0 and that would be the expected behavior.
1 Like
ie: Just changing to Align.Stretch would probably better represent what you want with your graph.
1 Like
@SimonDufour Thanks for your explain, and it solved my problem!