Search Issue Tracker

Fixed in 4.5.X

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. johndd110

    Jun 28, 2020 07:59

    This is just the information I am finding everywhere. Thanks for your blog, I just subscribe your blog. This is a nice blog..
    read more https://images.google.co.th/url?q=https://cglawms.com

  2. unity_K99WJS2TxGpRtA

    Jun 25, 2020 10:12

    Admiring the time and effort you put into your blog and detailed information you offer!..
    visit this page https://images.google.com.gi/url?q=http://www.musicrush.com/bestonli0/action

  3. unity_K99WJS2TxGpRtA

    Jun 21, 2020 12:38

    Very good points you wrote here..Great stuff...I think you've made some truly interesting points.Keep up the good work.
    check out this site https://maps.google.gp/url?q=https://www.tor.com/members/sanskritizz/

  4. unity_K99WJS2TxGpRtA

    Jun 20, 2020 12:34

    Great post I would like to thank you for the efforts you have made in writing this interesting and knowledgeable article.
    related site https://images.google.com.vn/url?q=https://www.mapleprimes.com/users/sanskritizz

  5. unity_K99WJS2TxGpRtA

    Jun 16, 2020 05:54

    This is such a great resource that you are providing and you give it away for free.
    check that https://images.google.hr/url?q=http://rogueadvocates.org/

  6. johndd110

    Jun 14, 2020 07:46

    Very good written article. It will be supportive to anyone who utilizes it, including me. Keep doing what you are doing – can’t wait to read more posts.
    click over here now https://images.google.se/url?q=http://rogueadvocates.org/

  7. unity_K99WJS2TxGpRtA

    Jun 13, 2020 13:10

    I am hoping the same best effort from you in the future as well. In fact your creative writing skills has inspired me.
    kangen water reviews http://www.wikidot.com/user:info/kangen

  8. johndd110

    Jun 11, 2020 18:25

    This is actually the kind of information I have been trying to find. Thank you for writing this information.
    kangen water machines https://www.pinterest.com/dosene8485/

  9. unity_K99WJS2TxGpRtA

    Jun 11, 2020 04:51

    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!..
    máy lọc nước ion kiềm kangen https://weheartit.com/dantridantri

  10. johndd110

    Jun 03, 2020 20:11

    This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post.
    moroccan carpets https://beniourainrugs.com/

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.