Closed tanakawatanabe closed 3 months ago
A simple answer is "You can't do it in that way". Files under Assets
are not referrenceable as an individual file in runtime.
You have to implement a custom solution to completely hide those files from users. Or you can change the .mov
suffix to another one like .blah
(users can peek it by renaming them, though).
Thx for the reply and understood. I searched some forums and it looks like storing videos in AssetBundle is the only way to prevent easy peeking. I've never used this feature and not sure it works with HAP Player well but I'll look into it.
Unfortunately, you can't use the Asset Bundles for this purpose. In short, it's not used for streaming.
Alright, I have no choice then. Thanks for the quick response.
I'm using HAP Player for in-game TV, projector, etc.
This doesn't happen when I put video on StreamingAssets folder and set Path Mode as well, but like I said above I'd like to use Local File System mode.
Unity 2021.3.8f HDRP DXR KlakHAP 0.1.20