Unity Issue Tracker - Custom Property Drawers fail to inherit properly when their Assembly's name has a space in it
Closed
UUM-29126
Custom Property Drawers fail to inherit properly when their Assembly's name has a space in it
Unity: Scripting
As Designed
2023.2.X
2023.1.X
2022.2.X
2021.3.X
Asmdefs with space in it are unsupported.
Unfortunately we miss a warning message in that particular case, but the workaround is quite easy: don't put space in your asmdef names.
How to reproduce:
1. Open the attached Project "drawerTest" and load Scene "SampleScene"
2. In the Hierarchy, select the "GameObject" GameObject
3. In the Inspector, under the "Test" Component, swap between the values of "Type"
4. Observe the Color field on the Component
Expected result: the Color is Green for "None" and Red for "Custom"
Actual result: the Color is always Green
Reproducible with: 2021.3.20f1, 2022.2.10f1, 2023.1.0b6, 2023.2.0a4
Could not test with: 2020.3.46f1 (Errors in scripts)
Notes:
Removing the space from the Assembly Definition Asset's "Name" field makes the Color swap correctly
Prioritise and Follow this issue
Have a workaround or additional info about this issue?