Search Issue Tracker
In Progress
Votes
0
Found in [Package]
1.0.0
1.0.13
Issue ID
BEHAVB-366
Regression
No
Unity Behavior Node Wizard generates incorrect type reference for nested enums in BlackboardVariable
Steps to reproduce:
1. Create a new script with a class containing an enum (e.g., `public class MyEnumScript { public enum MyEnum { Value1, Value2 } }`)
2. Create a new Unity Behavior graph and Create a new action node (using the Wizard)
3. Generate a new node using the nested enum as a parameter type
4. Examine the generated node code
\\
Actual results:
The generated node creates a BlackboardVariable with incorrect type reference `BlackboardVariable<MyEnum>` instead of the fully qualified name, causing compilation errors due to the enum not being found in the current scope.
Expected results:
The generated node should create a BlackboardVariable with the fully qualified type name `BlackboardVariable<MyEnumScript.MyEnum>` to properly reference the nested enum.
\\
Reproducible with versions:
1.0.0 - 1.0.13
\\
Notes:
- Workaround 1: Manually fix the generated code to include the full class path (MyEnumScript.MyEnum)
 - Workaround 2: Move the enum outside of the class wrapper to avoid nested type reference issues
 
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Android] TouchScreenKeyboard.selection.length always returns "0" when any length text is selected
 - Point Light in "LensFlareShowroom" scene of URP Samples uses unsupported Indirect Multiplier
 - Video does not play in macOS build when built app is placed in a path with a space in it on a specific project
 - Crash on AuxWindowManager::OnGotFocus when trying to maximize a tab while Visual Effect Graph window is open
 - “NullReferenceException: Object reference not set to an instance of an object” error is thrown when
 
Add comment