Skip to content

Add an model source dropdown option for using Application.persistentDataPath #1077

@Wayne-nulitics

Description

@Wayne-nulitics

Feature Description

Currently the only way to load model files via the ResourceManager is

  • Streaming Assets
  • Asset Bundle
  • Local
    The latter does not work outside of Editor and I have a requirement to dynamically swap or switch model files at runtime, we place all the model files in the Application.persistentDataPath folder and and would like to load them from there. I can't change StreamingAssets content post build and Asset Bunbles is not an option as these devices don't have public internet access.
    If you can give me an example of how, similar to Streaming Assets, I can load the files from Application.persistentDataPath as opposed to Application.streamingAssetsPath that would be appriciated.

Current Behaviour/State

I can't get the hand tracking model files to load from Application.streamingAssetsPath in a Android device
Even if I can, I need to be able to dynamically update, during runtime, the model files or .byte s files

Additional Context

No response

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions