Hi, Anybody knows how to use the reference of Spine.Unity.Editor in outside the Editor folder in Unity. Because right now I have to access method of spine editor script in MonoBehaviour. But it gives me a build time error. so what should I do for working fine ?
🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Editor Script use in outside the Editor folder in Unity
You can't use Editor Only Functions outside the Unity Editor, nor in Standalone Builds. These are Editor Only (as the name says) and mostly point to Editor Functions like Asset Database or Editor UI.
By the way it dosen't matter where in your Asset direktory the code lives I think
On 3/22/2019 at 8:50 PM, Shaarigan said:
On 3/22/2019 at 8:50 PM, Shaarigan said:
Thank you Shaarigan
Why would you even have an editor script inheriting from MonoBehaviour anyway? MonoBehavior is basically everything but the Editor. That's probably the source of your build error.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement