Colton_VitruviusVR
New member
Hey Justin,
My current workflow is assigning variables at runtime to prefabbed trees (each NPC has 4 trees Idle/Alert/Attack/Dead). This works fine, but I just started attempting to implement async additive loading. Assigning all the variables at runtime takes about 88ms for 10 NPCs which is far too much. Is there anyway to assign these variables at build time or in the editor? I attempted to create an editor script that exicuted the same code in editor from context menu but the variables don't persist (aren't serialized?)
Cheers,
Colton
My current workflow is assigning variables at runtime to prefabbed trees (each NPC has 4 trees Idle/Alert/Attack/Dead). This works fine, but I just started attempting to implement async additive loading. Assigning all the variables at runtime takes about 88ms for 10 NPCs which is far too much. Is there anyway to assign these variables at build time or in the editor? I attempted to create an editor script that exicuted the same code in editor from context menu but the variables don't persist (aren't serialized?)
Cheers,
Colton