Run Editor Script Before Baking Nav Mesh?
Hi guys,
I was just wondering if there was a way to have an editor script set up so that it could call a function to perform some edits on a scene automatically before the nav mesh was baked?
e.g. Every time the "Bake" button is pressed on the Navigation window my script would detect that, run some stuff, then allow the bake to continue as normal.
I'm thinking of something along the lines of the PostProcessBuildAttribute, but for use with baking a nav mesh.
Thanks in advance for any help!
Your answer
Follow this Question
Related Questions
EDITOR HOW TO GET A TEXT FILE OBJECT OR INSTANCE ID TO FOCUS THE PROJECT WINDOW ON IT 1 Answer
Editor - Selecting multiple active objects in project view 0 Answers
Running code once on editor start? 0 Answers
Remove Animator in clip via Editor Script? 1 Answer
Error BCW0012 'UnityEngine.Application.LoadLevel(String)' is obsolete. Use SceneManager.LoadScene 1 Answer