Loading several saved graphs at same time?

I am convinced this is ultra simple. just cant figure it out.

I have several recast graphs that I want to load at the same time and store in a variable, I just dont know how to do it. This is what I have so far :blush:

public TextAsset graphData; ( I assume this can be an array)

AstarPath.active.astarData.DeserializeGraphs (graphData.bytes); (to load above graph)

I just dont know how to use the above command to store the graph in a variable e.g.

RecastGraph rGraph1 = AstarPath.active.astarData.DeserializeGraphs (graphData.bytes); (obviously doesnโ€™t work)

@aron_granberg Is this so difficult that its not possible, or so easy that everyone is too embarrassed for me to answer?

Hi

Do you have different graphs in different files? If so you can use AstarPath.active.data.DeserializeGraphsAdditive. If they are all in a single file then just calling AstarPath.active.data.DeserializeGraphs will do it.

You can get all graphs from the AstarPath.active.data.graphs array.

Thanks. I have graphs in several files. I will check the additive to see if this is what I want.