Closed sh-dave closed 3 years ago
Sure, but it's pretty much explained in the Kha Wiki as well. Normally khamake will flatten all assets directories into the export root folder when exporting. So say
assets/dir1/someimage1.png
assets/dir2/someimage2.png
will both end up in the build/PLATFORM
directory
build/PLATFORM/someimage1.png
build/PLATFORM/someimage2.png
and are accessible via
Assets.images.someimage1
Assets.images.someimage2
.You can setup khamake however, to keep the directory structure intact when exporting (see the link in the ToolkitOptions.hx change). The assets will be exported to
build/PLATFORM/dir1/someimage1.png
build/PLATFORM/dir2/someimage2.png
and will be accessible via
Assets.images.dir1_someimage1
Assets.images.dir2_someimage2
The code change supports both formats now via the flag and defaults to the original implementation.
prefect, thanks!
Hey, can you explain what this does? Im not 100% sure i follow :)