Search Issue Tracker

Fixed in 2018.3.X



Found in





Issue ID




Cannot add a script to an object when the script has precompilers inside of the class that is also inside of the namespace



How to reproduce:
1. Open attached project "repro_1099297"
2. Try to add a test script from the project view to GameObject inside the hierarchy

Expected result: script gets added
Actual result: unity throws an error

Reproducible with: 2018.2.11f1, 2018.2.17f1, 2018.3.0b11, 2019.1.0a9
Not reproducible with: 2017.4.16f1, 2018.1.9f2, 2018.2.10f1

Comments (19)

  1. johndd110

    Jun 11, 2020 18:32

    Great post, you have pointed out some fantastic points , I likewise think this s a very wonderful website.
    máy lọc nước kangen

  2. unity_K99WJS2TxGpRtA

    Jun 11, 2020 05:02

    Awesome blog. I enjoyed reading your articles. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work!
    máy lọc nước kangen nhật bản

  3. unity_K99WJS2TxGpRtA

    Jun 02, 2020 13:39

    I’ve been searching for some decent stuff on the subject and haven't had any luck up until this point, You just got a new biggest fan!..

  4. unity_K99WJS2TxGpRtA

    May 18, 2020 05:50

    Very useful post. This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. Really its great article. Keep it up.
    cây máy tính

  5. unity_K99WJS2TxGpRtA

    Apr 12, 2020 12:12

    Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can't wait to read lots of your posts.
    Zahnarzt Zürich

  6. unity_K99WJS2TxGpRtA

    Apr 11, 2020 10:54

    I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post.
    ket qua xo so mien bac

  7. unity_K99WJS2TxGpRtA

    Apr 05, 2020 11:17

    I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article.
    Rèm văn phòng giá rẻ

  8. unity_K99WJS2TxGpRtA

    Mar 19, 2020 08:34

    I am very much pleased with the contents you have mentioned. I wanted to thank you for this great article.

  9. Parvodeva

    Apr 15, 2019 05:24

    Microsoft Edge browser in Windows 10 also allows users to save web credentials. problem is that Microsoft Edge does have an option to set a master password to prevent others from easily seeing the stored passwords.

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.