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

    May 24, 2020 05:55

    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.
    PVC fabric China http://chinapvcfabric.designertoblog.com/21923264/a-closer-look-at-backpacker-tent-fabrics

  2. unity_K99WJS2TxGpRtA

    May 23, 2020 05:53

    This is such a great resource that you are providing and you give it away for free. I love seeing websites that understand the value of providing a quality resource for free. It is the old what goes around comes around routine.
    giày da cá sấu thật https://casaufashion.weebly.com/giay-da-ca-sau.html

  3. johndd110

    May 21, 2020 12:18

    This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! keep up the good work
    Group health insurance brokers Michigan City Indiana http://toboxaso2.yolasite.com/

  4. johndd110

    May 18, 2020 19:02

    Great content material and great layout. Your website deserves all of the positive feedback it’s been getting.
    nhà đất bình dương https://nhadatbinhduong365.shutterfly.com/

  5. johndd110

    May 18, 2020 17:41

    I really appreciate this wonderful post that you have provided for us. I assure this would be beneficial for most of the people.
    in catalogue hcm https://docs.google.com/spreadsheets/d/11bq7-mXtvzsthBZ3SkNIH1i43781HVRpHP9u40t4Yrc/edit#gid=1011148728

  6. unity_K99WJS2TxGpRtA

    May 17, 2020 18:49

    I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement the concept. Thank you for the post.
    chuột gaming https://drive.google.com/drive/u/1/folders/1gZQ0nm1qcT4FAgBLrqhNbrQzUkForS8U

  7. unity_K99WJS2TxGpRtA

    Apr 12, 2020 12:02

    I like this post,And I guess that they having fun to read this post,they shall take a good site to make a information,thanks for sharing it to me.
    Zahnarzt Zürich https://www.styleyoursmile.ch/

  8. unity_K99WJS2TxGpRtA

    Apr 11, 2020 10:45

    I am hoping the same best effort from you in the future as well. In fact your creative writing skills has inspired me.
    kqxsmb https://www.inprnt.com/profile/xosovuiss/

  9. unity_K99WJS2TxGpRtA

    Apr 05, 2020 10:40

    Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking.
    Rèm cửa văn phòng https://www.inprnt.com/profile/thegioiremxx/

  10. unity_K99WJS2TxGpRtA

    Apr 05, 2020 10:35

    Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking.
    Rèm cửa văn phòng https://www.inprnt.com/profile/thegioiremxx/

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.