Embark
Customize your colony!
Create or download new mods to add new game mechanics to Embark. Limited to game mechanic changes for now, modding of art assets coming soon.
Learn More
Kailen_ 2 24 Oct, 2019 @ 6:52pm
Best way to reference files inside mod folder
Right now to get a reference to a texture file I uploaded with the mod i am using.
Path.GetFullPath(Path.Combine(Application.dataPath, @"..\..\..\") + "/workshop/content/1055090/<SteamID_of_mod>/<filename>"))

which seems a little silly and not sure how accurate it will be with peoples steam install.

Anyone know of a better way?
< >
Showing 1-2 of 2 comments
emf  [developer] 1 24 Oct, 2019 @ 7:17pm 
This Cities Skylines mod for example uses DLL resources to do it: https://github.com/Strdate/AdjustPathfinding/blob/master/AdjustPathfinding/UI/Textures.cs

Plenty of mods (Cities Skylines, Kerbal Space Program, etc.) have their source on github, it's a good way to figure out how to do stuff :).
Kailen_ 2 24 Oct, 2019 @ 8:04pm 
Awesome thanks, already implemented.
< >
Showing 1-2 of 2 comments
Per page: 1530 50