How to save copies of components with their materials? Nested arrays.

In addition to your solution,
I can suggest at least three ways to avoid structures (untested too):

  1. Use Components Map and materials array

image

Pack material indices into string:

Return materials:

  1. You can use the mesh asset materials:

  1. Also you can use json as a dynamic structure:

image

Hope this helps.

My Products

2 Likes