Search Issue Tracker
By Design
Votes
0
Found in [Package]
1.1.10
Issue ID
1208938
Regression
No
Building a prefab using the addressable system with a MenuItem script throws errors when the script is included in an assembly
Steps to reproduce:
1. Open the attached project "Case_1208938"
2. Navigate to Windows-> Asset Management and open the Addressable window
3. In the top menu of the Addressable window select Build-> Build Player Content
4. Notice the errors in the console "The type or namespace name 'MenuItem' could not be found"
Expected results: Assets with MenuItem Scripts are build
Actual results: Assets with MenuItem Scripts are not build if Scripts are stored into an assembly
Reproducible with: 2018.4.16f1(1.1.10), 2019.2.19f1(1.1.10), 2019.3.0f6(1.1.10)
Notes: The user has attached a video of the problem at the start of the report. Unable to reproduce in 2020.1 due to Addressable window failing to load Build->Build-> Build Player Content with 0 compiler errors. Addressable were not present in 2017.4
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Prefab override popup is cropped/positioned incorrectly when more than one display is used and a higher display Scale is set
- Opening a dropdown on a small screen results in its instant closing when mouse cursor is pressed where the dropdown is going to be opened
- Only "ArgumentNullException: Value cannot be null" is displayed instead of all the actual errors when opening a project with numerous compilation errors
- MultiColumnListView and MultiColumnTreeView do not change selection on first input when focus is set by code
- SerializedProperty.DataEquals is returning false when SerializedProperty.EqualContents return true
Resolution Note:
The .asmdef is set up wrong. It needs to explicitly be dependent on the editor. This dependency automatically happens if you are not using an asmdef, by putting the code in a folder called Editor. If you use an asmdef you need
"includePlatforms": [
"Editor"
]
This has nothing to do with addressables, and will fail building a player as well.