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]

Package: Entity Component System (ECS)

-

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

Comments (1)

  1. darrendemers12

    Feb 18, 2021 06:44

    The Collection Marts is platform where you can view latest designs about home décor and bedding. We have large range in different categories with finest fabric in cotton and silk. You can view not only present trends but also view huge collection with reasonable price. The Collection Marts can provide fast service about delivery as well as customer support too. Our products are not only self-made but also, well connected with markets to ensure for possibility of available designs if client want to purchase. The Collection Marts customer support open 24/7 to guide their customers about material or product stuff.
    thecollectionmarts.com/product-category/bedding/
    thecollectionmarts.com/product-category/comforter-set/
    thecollectionmarts.com/product-category/high-quality-bedsheets/
    thecollectionmarts.com/product-category/bridal-set/
    thecollectionmarts.com/product-category/export-quality-duvet-covers/
    thecollectionmarts.com/product-category/razai-set/
    thecollectionmarts.com/product-category/sofa-cover/
    thecollectionmarts.com/product-category/velvet-bedsheets/
    thecollectionmarts.com/product-category/mattress-protector/
    thecollectionmarts.com/product-category/razai-covers/
    thecollectionmarts.com/product-category/towels/

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.