Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
2 captures
13 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 /
This question was closed Mar 10, 2015 at 09:56 PM by clunk47 for the following reason:

The question is answered, right answer was accepted

avatar image
0
Question by djparishilton · Feb 14, 2015 at 06:19 PM · c#buildbuild-errordll

Build error when using BooleanOps.dll

I'm using BooleanOps.dll durng runtime to cut mesh and everything works in editor but when i try to build i get this error

 Error building Player: Extracting referenced dlls failed.

 ArgumentException: The Assembly UnityEditor is referenced by BooleanOps. But the dll is not allowed to be included or could not be found.
 UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache, BuildTarget target) (at C:/BuildAgent/work/d63dfc6385190b60/Editor/Mono/AssemblyHelper.cs:137)
 UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache, BuildTarget target) (at C:/BuildAgent/work/d63dfc6385190b60/Editor/Mono/AssemblyHelper.cs:140)
 UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, BuildTarget target) (at C:/BuildAgent/work/d63dfc6385190b60/Editor/Mono/AssemblyHelper.cs:172)
 UnityEditor.HostView:OnGUI()
 


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

1 Reply

  • Sort: 
avatar image
1
Best Answer

Answer by vexe · Feb 15, 2015 at 10:34 PM

The UnityEditor.dll is not available for you at runtime when you build and run your game. Your custom dll seems to be referencing it so it errors out cause it's not finding it. You could use conditional compilation and wrap any usage of editor codes with #if UNITY_EDITOR ex:

 #if UNITY_EDITOR
 using UnityEditor;
 #endif
 
 // ... somewhere else
 #if UNITY_EDITOR
 // some editor codes...
 #endif

Comment
Add comment · Show 9 · 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 djparishilton · Feb 15, 2015 at 10:36 PM 0
Share

But is it possible to include it in build

avatar image vexe · Feb 15, 2015 at 10:40 PM 0
Share

I've also wondered about that, but if you think about it, it doesn't make sense. There's no 'unity editor' in your game... Even if you manage to add it in build somehow, you might crash using it.

What is it anyway in the editor dll that you want in your game that much? - is it something maybe you could implement? - if not, is it maybe something you could grab from the dll after decompiling it? (assu$$anonymous$$g it doesn't have much dependencies on other editor code)

avatar image djparishilton · Feb 15, 2015 at 10:45 PM 0
Share

Its boolean operator that allows me to cut holes in meshes, witch is kinda important in my prison escape game

avatar image vexe · Feb 15, 2015 at 10:46 PM 0
Share

Where is it located within the editor dll?

avatar image djparishilton · Feb 15, 2015 at 10:47 PM 0
Share

sorry what?

Show more comments

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Distribute terrain in zones 3 Answers

Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers

Build C# to dll for .NET 3.5 w/ VS 2017 0 Answers

My android app build has more bugs on it than the editor/deveploment version 0 Answers

Audio Mixer Snapshots not transitioning properly after build,Audio Snapshots not transitioning properly after build. 0 Answers


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