Hi there,
I have a pretty complex script that finds the locations of all vertices in an object, then sorts them into a manageable array so that they can be easily manipulated later. The problem is that the only way I seem to be able to create this array is by putting the function in the Start() function. This also leads to a bit of a lag spike when these prefabs are instantiated. I could copy the values one by one and put them into the prefab, but there are hundreds of values.
Essentially what I want to do is run the script, copy the values while the game is running, then paste them into the prefab. Is this possible?
Thanks very much for your time!