You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jinleili opened this issue
Dec 25, 2022
· 2 comments
Labels
A-AssetsLoad files from disk to use for things like images, models, and soundsC-FeatureA new feature, making something new possibleO-AndroidSpecific to the Android mobile operating system
What problem does this solve or what need does it fill?
Integrating the Bevy engine into an existing app may be a common scenario, but in this scenario it is difficult for the user to manually initialize the ndk-glue because the ANativeActivity parameter cannot be provided and the ndk-glue is not initialized which causes AndroidAssetIo::load_path panic.
What solution would you like?
Since ANativeActivity is only used in bevy to get asset_manager:
let asset_manager = ndk_glue::native_activity().asset_manager()
Allowing asset_manager to be made available through configuration would give users more freedom.
mockersf
added
A-Assets
Load files from disk to use for things like images, models, and sounds
O-Android
Specific to the Android mobile operating system
and removed
S-Needs-Triage
This issue needs to be labelled
labels
Dec 25, 2022
A-AssetsLoad files from disk to use for things like images, models, and soundsC-FeatureA new feature, making something new possibleO-AndroidSpecific to the Android mobile operating system
What problem does this solve or what need does it fill?
Integrating the Bevy engine into an existing app may be a common scenario, but in this scenario it is difficult for the user to manually initialize the
ndk-glue
because theANativeActivity
parameter cannot be provided and the ndk-glue is not initialized which causesAndroidAssetIo::load_path
panic.What solution would you like?
Since
ANativeActivity
is only used in bevy to getasset_manager
:Allowing
asset_manager
to be made available through configuration would give users more freedom.Additional context
Scenario demo: bevy-in-app
The text was updated successfully, but these errors were encountered: