lowenware / dotrix

A 3D engine with ECS and Vulkan renderer for Rust developers
https://dotrix.rs
MIT License
290 stars 11 forks source link

added assets loader fallback logic #145

Closed russellwmy closed 2 years ago

russellwmy commented 2 years ago

Problem: In iOS, relative path does not work properly. It causes dotrix cannot find the asset file.

Solution: Added a fallback logic to search assets in execution bundle directory.

Follow Up: Should check the file system and do conditional loading. However, Dotrix does not support mobile platform at the moment. We should revisit the problem again when we design assets loader to support multiple platforms.

Lowentwickler commented 2 years ago

Thank you for figuring this out. I will close this in favor of #146