Search Issue Tracker
Fixed
Votes
0
Found in [Package]
preview.18 - 0.2.0, preview.17 - 0.5.0
Issue ID
1213771
Regression
No
[Entities] Cannot add Script to a Game Object if there is a comment after [GenerateAuthoringComponent]
Reproduction steps:
1. Open project in "MyRepro.zip"
2. Notice that the Script "RotateTag.cs" has a comment at line 3 after [GenerateAuthoringComponent]
3. Try attaching the Script to any GameObject
Expected result: the Script will be attached
Actual result: a "Can't add script behaviour <scriptName>. The script needs to derive from MonoBheaviour!" error occurs
Reproducible with: Entities preview.4 - 0.3.0 (2019.3.0b11), Entities preview.17 - 0.5.0 (2019.3.0f6, 2020.1.0a16)
Not reproducible with Entities preview.17 - 0.5.0 (2020.1.0a21)
Could not test with: 2017.4 because there is no Package Manager, 2018.4, 2019.2 because [GenerateAuthoringComponent] is available only in preview.18 - 0.2.0 and above
Notes:
1. Removing the comment after [GenerateAuthoringComponent] resolves the issue
2. 2019.3.0b11 is the first affected version because it is the first to support Entities 0.2.0 or above (0.3.0 is available in 2019.3.0b11)
3. Issue does not reproduce in 2020.1.0a17 and higher alpha versions
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Add comment