So I have a system all made for setting up characters. On Awake, it merges the character and clothing meshes, does texture combination work, etc.
But I would really like this system to display the final version of a character in the editor, too.
So what I wonder is, if I make the script work in edit mode, what sorts of functions will I need to do to accomplish all my instantiation, texture-building and junk?
My main two functions are one for combining meshes and using ReadPixels to combine textures (and instantiating said mesh and texture together).
I do make fairly frequent use of the symbol “new”.
From what I understand, I’ll have to create two versions of my functions; one that works in the editor, and one which works in-world.
But will my use of “new”, or the instantiation of textures/meshes cause any problems with memory?