Steps to reproduce:
- Open the attached "GTK_menuBug.zip" project
- Open the "New Graph" asset in the Graph Toolkit Editor
- Enable the Blackboard in the Graph Toolkit Editor
- Press on the dropdown next to the "+" ('Pick a Type' menu) and observe (both Vector3 and Vector2 types are displayed)
- In the "GraphToolkitInit" script, uncomment lines 59-61 and save
- Press on the dropdown next to the "+" ('Pick a Type' menu) and observe
Actual results: Only the Vector3 type is displayed
Expected results: Both Vector3 and Vector2 types are displayed
Reproducible with versions: 0.1.0-exp.1 (6000.3.0a6), 6000.4.3f1, 6000.5.0b4, 6000.6.0a3
Tested on (OS): Windows 11 Pro (25H2)
Notes:
- This creates a problem where a user cannot select an alternative type if it's not evaluated during domain reload.
- In the provided project, the default compiled value for 'portType' is selected as Vec2 for the if statement at line 56 (because it's the first element in an enum); therefore, at domain reload, the 'AddInputPort<Vector2>' is compiled (line 62), and thus, that's the only type compiled and available in the 'Pick a Type' menu.
This will be the only type displayed, regardless of the portType being changed to Vec3 during runtime
- All possible variable types should be listed in the 'Pick a Type' menu
- The only possible way to create a variable of the needed type is to drag a connection from the input