- Home /
Question by
Socapex · Apr 01, 2017 at 04:52 PM ·
renderingdllnative pluginnative
Execute native plugins in edit mode?
Is it possible to execute a native plugin in edit mode? Using ExecuteInEditMode seemed to only call the plugin a few times and then stop.
More specifically, if yes to the above, can you render in the edit window rendering context from a native rendering plugin?
Comment
Answer by jobigoud · Apr 19, 2017 at 06:23 PM
Native plugins work in edit mode but using the usual yield return new WaitForEndOfFrame()
means the GL.IssuePluginEvent()
is only going to get called when the Scene view is repainted, so you need to constantly move the camera or an object to trigger it.
I wont mark as answered, just in case someone has a better technique. But here's an upvote, thx :)