Page 2 of 2

Re: help,How to use C# code to get data from a graph

Posted: Wed Apr 03, 2019 8:51 am
by Cry-Flare
You would need to load the model into CRYENGINE one at a time as the information is only available after the model has been loaded.

You can use the ForEachArchiveFolderEntry method to iterate over each file in a pak archive.
The function takes a callback to be called on each entry (lambda works fine).

Code: Select all

gEnv->pSystem->pCryPak->ForEachArchiveFolderEntry(...)

Re: help,How to use C# code to get data from a graph

Posted: Mon Apr 15, 2019 8:49 am
by myt888
I tried hard, but failed.

I don't know if I use ForEachArchiveFolderEntry ()

Can you give me a simple example?

Thank you very much.

Re: help,How to use C# code to get data from a graph

Posted: Fri Apr 26, 2019 5:28 pm
by Cry-Flare
You can check out how it is used already in the engine, should give you an idea of how to use it, for example the UnPak method of the FilePathUtils:
https://github.com/CRYTEK/CRYENGINE/blo ... l.cpp#L124

Re: help,How to use C# code to get data from a graph

Posted: Tue Apr 30, 2019 4:42 am
by Samishkakumble
Excellent post. I got valuable information here. Thank you!