Search Issue Tracker
Fixed in 2018.3.X
Fixed in 2018.2.X
Votes
0
Found in
2018.2
Issue ID
1071188
Regression
Yes
Missing spaces around classnames wont allow scripts to be attached
Example code showing the issue:
using UnityEngine;
namespace MyGame
{
public class Player: MonoBehaviour
{
public float Health;
}
}
Works when space is added before the ":"
Comments (1)
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
- [Android][iOS][UnityPlayerActivity] Legacy InputField.onEndEdit is not called when ending text edit
- Transform corruption and/or crash on PhysX::CreateCharacterController when spawning physics objects into Prefab stages
- UNITY_EDITOR data is Serialized into AssetBundle when building on the active Build Target
- "TLS Allocator ALLOC_TEMP_TLS, underlying allocator ALLOC_TEMP_MAIN has unfreed allocations..." error when changing the Packages "Cache Location" folder
- CompilationPipeline.assemblyCompilationFinished() hangs unity when reloading domain
consu3
Sep 10, 2025 09:12
Wow, that is a wild one. I can't believe a missing space would cause that sort of issue; you'd think the compiler would be a little more forgiving. This is exactly the kind of hyper-specific, frustrating bug that's impossible to track down on your own. Thanks for sharing this, it's a huge help for anyone else who might run into it!