Building issues. Massive script using UnityEditor.
Hello everyone, I searched for similar issues and I found some, but not quite what I'm facing right now. As you can see in the title, I wrote a massive script that is using the "UnityEditor" library because of the point of my game that is updating and modifying prefabs (A customization feature) at runtime. I then understood with some building errors and researches that it was not a big deal to do so. Most people succeeded by using preprocessor directives or the Editor directory. My problem is that my script is used dynamically and is supposed to change assets at runtime, so putting it into an "Editor" folder wouldn't (and didn't) solve the problem, it throws other errors because the script is referenced by other scripts. I'm really disappointed because it was supposed to be my first true Unity finished project, but everything just fell in pieces.
That's why I'm asking for help, it's my first request here, I always found answers that made me able to solve my problems "alone" until now... Thanks in advance for your attention and your advices.
Your answer
Follow this Question
Related Questions
Editor - Selecting multiple active objects in project view 0 Answers
BUİLD ERROR!! it just fails on this project,BUILD ERROR!!! it just fails on this project 0 Answers
Unity PERSISTENT error: Assertion failed on expression: 'VCCache::instance != NULL' unity 0 Answers
Score counting works in editor but not when I build it! 0 Answers
PrefabUtility.CreatePrefab() results in "not a valid asset file name" error? 2 Answers