I've made a path finding utility that works just fine. Each node has neighboring nodes assigned to it in an builtin array, which works really smoothly. However, at the moment I have assigned all these neighboring nodes manually which is circuitous.
The solution I want to avoid:
1) I could -and I know how to- assign these arrays at function Start()
, however I would not be able to use the fast buitlin arrays and starting the game takes unnecessarily much time.
The solution I am looking for:
2) I could assign the builtin variables in a 'bake-like-manner':
I need to run a script outside the game that can interact with the game and assign variables much like the script at the previous solution could, but then store the variables and assign builtins.
I hope I explained everything well.
If anything is unclear I'd be pleased to clarify.
Thanks in advance!