Search Issue Tracker
By Design
Votes
0
Found in
2019.3.0a7
Issue ID
1164124
Regression
No
Can't assign missing script to a prefab if an asmdef is present in the folder
1. What happened
Trying to fix missing script component within a prefab in isolation mode will complain about scripts that are not derived from monobehavior.
2. How we can reproduce it using the example you attached
1. Load the attached project or add the assets to an existing one
2. Select the Cube.prefab asset in the project and open the prefab (Isolation mode)
3. Try to assign script A and B to the missing script component on the prefab
Note that the warning doesn't go away when assigning a script to the slot
4. Try to leave Isolation mode and click on the Save button when prompted
Result: A "Save Failed" dialog will pop up and after clicking the okay button, error will be printed in the console about the scripts we assigned don't derive from MonoBehaviour
Deleting the AsmDef.asmdef asset from the project will make the warning go away and we'll be able to save the changes to the prefab
This is reproducible in all Unity versions since the implementation of Nested Prefab and its Isolation mode. Before, we were simply not able to instanciate a prefab in the scene that has missing scripts in it.
-
pyjehefy
Jul 06, 2020 16:14
This is a truly good site post. Not too many people would actually, the way you just did. I am really impressed that there is so much information about this subject that have been uncovered and you’ve done your best, with so much class. If wanted to know more about green smoke reviews, than by all means come in and check our stuff.
see here https://maps.google.bi/url?sa=t&url=https://merpessentials.com/ -
pyjehefy
Jul 05, 2020 16:22
This article was written by a real thinking writer. I agree many of the with the solid points made by the writer. I’ll be back.
read more… https://images.google.bg/url?q=https://cglawms.com -
unity_K99WJS2TxGpRtA
Jul 04, 2020 05:22
Thank you for taking the time to publish this information very useful!
a total noob https://maps.google.com.py/url?q=https://www.supermensagens.com.br/ -
pyjehefy
Jul 03, 2020 20:54
The information you have posted is very useful. The sites you have referred was good. Thanks for sharing...
see this site https://www.google.hr/url?q=https://cglawms.com -
unity_K99WJS2TxGpRtA
Jul 03, 2020 16:01
Great knowledge, do anyone mind merely reference back to it
have a peek here https://maps.google.com.ec/url?q=https://cglawms.com -
unity_K99WJS2TxGpRtA
Jun 30, 2020 09:51
Thanks so much for sharing this awesome info! I am looking forward to see more posts by you!
homepage https://images.google.es/url?q=https://gemsandjewelsforless.com/ -
unity_K99WJS2TxGpRtA
Jun 29, 2020 10:49
nice post, keep up with this interesting work. It really is good to know that this topic is being covered also on this web site so cheers for taking time to discuss this!
go to the website https://images.google.com.ec/url?q=https://monsterlegendzfree.com -
johndd110
Jun 28, 2020 12:53
Only aspire to mention ones content can be as incredible. This clarity with your post is superb and that i may think you’re a guru for this issue. High-quality along with your concur permit me to to seize your current give to keep modified by using approaching blog post. Thanks a lot hundreds of along with you should go on the pleasurable get the job done.
click this link https://images.google.bg/url?q=http://bocaratonbitcoin.com -
unity_K99WJS2TxGpRtA
Jun 28, 2020 10:42
I felt very happy while reading this site. This was really very informative site for me. I really liked it. This was really a cordial post. Thanks a lot!.
warrior plus tutorial https://blogtactics.com/warrior-plus-for-beginners/ -
unity_K99WJS2TxGpRtA
Jun 27, 2020 07:46
It proved to be Very helpful to me and I am sure to all the commentators here!
www.wellsppwf.com https://www.wellsppwf.com
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- UI Toolkit 'background-size' property is not fully animatable
- Moving the Scrollbar via clicking no longer works after the first-click when page size is too small
- Elements in UI Builder Viewport are displayed incorrectly when Editor UI Scaling is set to 125%
- Prefab referencing a script is not shown in the Search window's Project tab when using "Find References In Project"
- Scroll view sensitivity remains unchanged when modifying the "--unity-metrics-single_line-height" value
Resolution Note (2020.1.X):
By design. The scripts in this project are editor only scripts because the asmdef is only compatible with the ditor.
If you try to attach the scripts to a regular game object by dragging into one in the Hierarchy, you will get dialog saying "Can't add script. The script is an editor script".