Heads-up: Resource lookup path change (under discussion) #785
untoldengine
started this conversation in
General
Replies: 1 comment 3 replies
-
|
I like more the approach of flattening the layout, because the From my point of view, inside a scene bundle / folder everything you have is an asset, even if in the future we add some code or scripting code I call that an asset. The only thing that maybe is not an asset could be some configuration files, outside the scene description file, but for now I think we can place these config files in the root folder. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
TL;DR
I’m making a small behavior change so the Main bundle follows the same directory structure as a custom base path. The Module bundle remains the same. This is open for discussion before we lock it in.
What’s changing:
assetBasePath (existing layout) and Bundle.main will both search using the same relative subpaths:
Bundle.module behavior is effectively unchanged.
Why
Unifies lookup rules so developers use one predictable folder layout regardless of whether assets come from a base path or the main app bundle.
Impact
Open question
Should we drop the top-level Assets folder and use a flatter scheme?
I’ll adjust the shared search list (and docs) based on team preference.
Beta Was this translation helpful? Give feedback.
All reactions