Search Issue Tracker
By Design
Votes
0
Found in
4.3.0b3
Issue ID
563962
Regression
No
Unity should not allow the creation of scripts that have the same name as existing Unity class names
1. Create a C# script called Gradient
2. Add public Gradien gradient in it.
3. Add the script as a component on a game object
Actual: there is no editable Gradient in the Inspector. That's because the Inspector things the Gradient variable is a script of type Gradient and not Unity's gradient type
Expected: Unity should give error/warning that my class has the same name as an existing Unity class and that is not allowed.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- SystemInfo.get_graphicsDeviceName() is generating garbage GC Alloc when using Metal graphics API
- Crash on D3D12CommonShader::ApplyGpuProgram when attaching material which samples "_UnityFBInput0" to "Full Screen Pass Renderer Feature" Component
- SpeedTree meshes and objects count differs when comparing the numbers in the Player with the Editor
- Model and Prefab Preview icons are not updated after upgrading associated Materials to URP
- Game view is rendered white when viewing the Editor with HDR display and Post Proccesing is enabled on the Main Camera with 2D URP
Add comment