Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by wantnon · Oct 17, 2015 at 10:19 AM · errortextmesh

Error removing component when merging prefab changes: Can't remove MeshRenderer because TextMesh depends on it

when i run my scene in editor, console output below error:
"Error removing component when merging prefab changes: Can't remove MeshRenderer because TextMesh depends on it".
yeah, i have been tried to remove meshRenderer on a gameObject which has a TexMesh on it. but i failed and then i removed the TexMesh first before i removed the meshRenderer. i am sure now there is no TexMesh in the scene.
so i can not understand why i got this error.
and i also want to know if this error will affect the Xcode project imported from unity.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
3

Answer by quentin_le_guennec · Jul 27, 2016 at 05:02 PM

This is an old post but to anyone that comes here through Google as I did I had a similar issue that I managed to fix.

Basicaly I had modified a gameObject created from a prefab, so the gameObject and the prefab had differencies. It seems to confuse Unity, so I updated the prefab to match the gameObject state (buttton "Apply" on the "Prefab" field of the gameObject) and it fixed the issue. Alternatively one could break the prefab instance of the gameObject (select the gameObject, got to "GameObject" menu, click "Break Prefab Instance").

Hope this can help.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

Answer by tuncOfGrayLake · Apr 13, 2021 at 02:30 PM

This bug is back and I had to remove the 'requires component' out of our code to get it building again. I did narrow it down to a scene that had no change in a long time so this problem was likely reintroduced through Unity's end with the 2020.3.2f1 update (or a slightly earlier one.) If anyone has a better solution please let me know.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by cdr9042 · Apr 26 at 03:52 AM

I got this error and couldn't find the offending prefab in my project with many scenes. This is how I find the offending Prefab, I check the Editor Log and find the last scene the Editor opened before it report "Build completed with a result of 'Failed'" (or search for 'Error removing component when merging Prefab changes')

 Opening scene 'Assets/_Project/Scenes/EmojiPicker/EmojiPicker.unity'
 Unloading 7 Unused Serialized files (Serialized files now loaded: 0)
 Error removing component when merging Prefab changes: Can't remove Canvas because GraphicRaycaster (Script) depends on it
 UnityEngine.StackTraceUtility:ExtractStackTrace () (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs:37)
 ...
 [./Editor/Src/Prefabs/PrefabMerging.cpp line 476]
 
 ...
 
 Build completed with a result of 'Failed' in 12 seconds (12286 ms)

from there I find the prefab in scene EmojiPicker.unity and fix it as @quentin_le_guennec's answer says

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity Crashing on Play after updating to 2018.2.1f1 0 Answers

error when trying to change TextMesh.text through script 2 Answers

,VS2017 cannot find Metadata file "Unity.TextMeshPro.Tests.dll" 0 Answers

How can I fix my textmesh pro, I have change Api Compatibility level from .NET Standard 2.0 to .NET 4.x but it not work and my textmesh pro only have 2 choice 0 Answers

Replacing font of TextMesh issue 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges