Search Issue Tracker

Fixed in 4.5

Votes

0

Found in

4.3.0b5

Issue ID

569426

Regression

No

Can add script that requires component that is conflicting with object's existing components

Scripting

-

1. Create object.
2. Add Rigidbody2D to the object
3. Create script like this:
[RequireComponent(typeof(Rigidbody))]
public class A : MonoBehaviour {}
4. Add it to the object.

You'll get error
"Can't add component 'Rigidbody' to Sphere because it conflicts with the existing 'Rigidbody2D' derived component!"
But component A will be still added to the object
You can do the same from a script. You can see it using AddA.cs script

Comments (34)

  1. 592516a49927a8a944da7644ada256a8?d=mm

    unity_K99WJS2TxGpRtA

    Jul 24, 2020 16:33

    This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information...
    máy triệt lông vĩnh viễn ipl https://lookbook.nu/user/7729318-Osakacoss

  2. 7948c5f9c66bd06a22b5cc1ba234e146?d=mm

    pyjehefy

    Jul 11, 2020 12:19

    I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well..
    homepage https://www.google.am/url?q=https://erintolephotography.com

  3. 7948c5f9c66bd06a22b5cc1ba234e146?d=mm

    pyjehefy

    Jul 08, 2020 14:13

    I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well..
    mental träning sport https://buyandsellhair.com/author/hypnosterapin/

  4. 7948c5f9c66bd06a22b5cc1ba234e146?d=mm

    pyjehefy

    Jul 06, 2020 14:23

    I really thank you for the valuable info on this great subject and look forward to more great posts. Thanks a lot for enjoying this beauty article with me. I am appreciating it very much! Looking forward to another great article. Good luck to the author! All the best!
    have a peek at this web-site https://www.google.es/url?q=http://bocaratonbitcoin.com

  5. 7948c5f9c66bd06a22b5cc1ba234e146?d=mm

    pyjehefy

    Jul 05, 2020 15:09

    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.
    go now https://maps.google.tk/url?q=https://www.supermensagens.com.br/

  6. 7948c5f9c66bd06a22b5cc1ba234e146?d=mm

    pyjehefy

    Jul 05, 2020 10:57

    i read a lot of stuff and i found that the way of writing to clearifing that exactly want to say was very good so i am impressed and ilike to come again in future..
    San Diego California http://www.topcitysearches.com/

  7. 7948c5f9c66bd06a22b5cc1ba234e146?d=mm

    pyjehefy

    Jul 04, 2020 19:32

    I really loved reading your blog. It was very well authored and easy to understand. Unlike other blogs I have read which are really not that good.Thanks alot!
    going here https://maps.google.gp/url?q=https://gemsandjewelsforless.com/

  8. 7948c5f9c66bd06a22b5cc1ba234e146?d=mm

    pyjehefy

    Jul 03, 2020 19:56

    This type of message always inspiring and I prefer to read quality content, so happy to find good place to many here in the post, the writing is just great, thanks for the post.
    click here for more info https://maps.google.gp/url?q=https://merpessentials.com/

  9. 6845e15db0d0383c2644f384bb6e1376?d=mm

    johndd110

    Jun 29, 2020 10:32

    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!
    check these guys out https://images.google.com.qa/url?q=https://cglawms.com

  10. 6845e15db0d0383c2644f384bb6e1376?d=mm

    johndd110

    Jun 28, 2020 21:37

    Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can't help but wonder, what about the other side? !!!!!!THANKS!!!!!!
    local dental care https://www.northstardentistryidaho.com/services/

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.