- Home /
Call Editor function from Monobehaviour script
Hello.
I was wondering if it's possible to call a public function that is in Editor Script, from Monobehaviour script.
So when i'm in Playmode and something happens, i need to call a specific Editor Function..
Note that i Must be in Playmode, when calling the Editor function...
Thanks
Answer by Masterio · Feb 24, 2016 at 02:59 PM
Editor libs, functions are not included to the build.
I am not trying to call them in the Build. I'm aware that there's no way to call Editor function in the Build.
I want to do that while i'm in the Editor, in Playmode...:)
Your answer
![](https://koobas.hobune.stream/wayback/20220612065426im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Open settings dialog like Player, Quality, Render Settings via C#. 0 Answers
Disable all scripts on gameobject excluding the one calling for disable 2 Answers
How can I link a GameObject instance to a script variable in a Prefab using the editor? 1 Answer
Can I call a class's method which inherit monobehaviour by a normal class? 0 Answers
Access Layer Visibility and Lock via C# 0 Answers