Re: c# - Get Game Directory

#2
Hey there,

You can try Engine.System.GetICmdLine().GetArg(1).GetValue().
This assumes the engine was started with the project in the command line.

If the project is located within the engine directory (for ex, when packaging the game), you could get the engine directory via Engine.EngineRootDirectory.
Uniflare
CRYENGINE Technical Community Manager
Here to help the community and social channels grow and thrive.

My personal belongings;
Beginner Guides | My GitHub | Splash Plugin

Who is online

Users browsing this forum: No registered users and 1 guest

cron