- Home /
Question by
sergerus · Nov 07, 2013 at 04:30 AM ·
monobehaviourtestingheadless
How to control MonoBehaviour lifecycle methods in test environment?
I need test my application by unit tests. I can start Unity in headless mode and run tests without Start-Update cycles, so I can test static logic. Next my step to test application in dynamic mode "as player". If I run application EditorApplication.isPlaying=true then Unity calls Start-Update automaticly and I loose control of test. So I need way to manual call MonoBehaviour lifecyrcle methods.
Comment