Search Issue Tracker

Won't Fix

Votes

0

Found in

2018.1.0b5

Issue ID

994531

Regression

No

Compiling a script with RequireComponent does not add that component to the object

Scripting

-

How to reproduce:

1. Open any (new) project
2. Create a new script and attach it to any GameObject
3. Add [RequireComponent(typeof(NavMeshAgent))] before the class declaration
4. Save and switch back to Unity to recompile
- Note that the component does not appear
- Adding this script to any other gameobject (or removing and reattaching it) causes it to properly add the required components

- Reproduced with 2018.1.0b5 (a48da4f646ae), 5.6.4p1 (e67c4b7007d5)

Comments (19)

  1. unity_K99WJS2TxGpRtA

    May 09, 2020 09:23

    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.
    learn more https://docs.google.com/spreadsheets/d/1cBer1fgCZFDFyGAQ2aPHgY2UrIhUkuPJsN14vT__IsA/edit?usp=sharing

  2. unity_K99WJS2TxGpRtA

    May 06, 2020 19:43

    this is really nice to read..informative post is very good to read..thanks a lot!
    view website https://images.google.com.ec/url?sa=t&url=http://rogueadvocates.org/

  3. unity_K99WJS2TxGpRtA

    May 01, 2020 06:42

    I admit, I have not been on this web page in a long time... however it was another joy to see It is such an important topic and ignored by so many, even professionals. professionals. I thank you to help making people more aware of possible issues.
    Loop Perio Periodontist Near Me https://loopperio.com/

  4. unity_K99WJS2TxGpRtA

    Apr 12, 2020 18:47

    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.
    Zahnarztpraxis Zürich https://www.styleyoursmile.ch/

  5. unity_K99WJS2TxGpRtA

    Apr 11, 2020 12:03

    This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information...
    xosovui.net/xsmb http://www.lawrence.com/users/xosovuiss/

  6. johanmark

    Mar 20, 2020 13:35

    http://technologypipe.com
    http://technologysend.com
    http://technologycharts.com
    http://automotivewish.com
    http://automotiveflower.com
    http://automotivenight.com
    http://automotivelion.com
    http://automotivedollars.com
    http://automotiverates.com
    http://automotiveover.com
    http://automotivebuddies.com
    http://automotivegrow.com
    http://businesshard.com
    http://businesssweet.com
    http://businessfiesta.com
    http://businesslucky.com
    http://businessthunder.com
    http://healthcreativity.com
    http://healthbuller.com
    http://healthcheapest.com
    http://healthsunflower.com
    http://healthintergrity.com
    http://homespicy.com
    http://homebuller.com
    http://homesunflower.com
    http://homeintergrity.com
    http://homesouthbeach.com
    http://technologymarks.com
    http://technologywish.com
    http://technologycaster.com
    http://technologyopplis.com
    http://technologysonic.com
    http://travelopplis.com
    http://travelecono.com
    http://travelcharte.com
    http://travelredhot.com
    http://travelstrick.com
    http://traveladaptive.com
    http://travelbuller.com
    http://travelvariety.com
    http://travelnormal.com
    http://travelelectra.com
    http://weddingback.com
    http://weddingdragon.com
    http://weddingdollar.com
    http://weddingopplis.com
    http://weddingsonic.com
    http://weddinggrow.com
    http://weddingrex.com
    http://weddingworth.com
    http://weddingblaster.com
    http://weddingfeedback.com
    http://pascherhermes.com
    http://thehomepayge.com
    http://kitchenious.com
    http://nfs-world-hack.com
    http://indoanz.com
    http://my51t.com
    http://ridzonfarms.com
    http://businesscharte.com
    http://businessredhot.com
    http://businessdraw.com
    http://businessspicy.com
    http://businessstrick.com
    http://businessocity.com
    http://businesslastminute.com
    http://businessjewel.com
    http://businessmatche.com
    http://businesskayak.com
    http://homestrick.com
    http://homereadset.com
    http://homeebony.com
    http://homematche.com
    http://homecheapest.com
    http://homecupcake.com
    http://homeoneday.com
    http://homeguerrilla.com
    http://homeelectra.com
    http://homecamel.com
    http://technologyflower.com
    http://technologylion.com
    http://technologygeo.com
    http://technologystick.com
    http://technologyunder.com
    http://technologyrates.com
    http://technologyletter.com
    http://technologyflag.com
    http://technologywidget.com
    http://technologyclient.com
    http://travelreadset.com
    http://travelebony.com
    http://travelmatche.com
    http://travelverde.com
    http://travelintergrity.com
    http://travelouter.com
    http://travelsustain.com
    http://travelNobel.com
    http://travelEastside.com
    http://travelhotrod.com
    http://shoppingorama.com

  7. ThomasMore1

    Feb 20, 2020 12:08

    I have discovered out of many droughts by shutting the PC for a couple of moments and composing on a bit of paper. I may visual cue a couple of key thoughts, chart my section frameworks, or sketch the whole thesis with boxes and bolts and notes jotted more than a few pages.
    By: https://www.ukwritingexperts.co.uk/

  8. inserse

    Dec 20, 2019 18:18

  9. sainianky00

    May 29, 2019 16:08

    Now get the inform with the new technique which I am shwing you in the regarding of http://deletebinghistory.com delete bing search history completely. This will take only some time after come here.

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.