streamingAssetsUrl Missing in v7
See original GitHub issueThe docs say setting the streamingAssetsUrl
is supported since version 6, but I am using version 7 for Unity 2019, and I don’t see any way to set streamingAssetsUrl
Defining the Streaming Assets URL https://github.com/elraccoone/react-unity-webgl#defining-the-streaming-assets-url
IUnityConfig doesn’t seem to have a streamingAssetsUrl
in version 7
export default interface IUnityConfig {
/**
* The unique identifier helps you getting the instance
* of your context from any other class.
* @type {string}
*/
id?: string;
/**
* Unity Module injection.
* @type {Object}
*/
modules?: Object;
/**
* You can default your Unity Version. The library may
* contain future patches for specific Unity versions.
* It's not needed but is recommended to define a version.
* @type {UnityVersion}
*/
unityVersion?: UnityVersion;
/**
* Since the Unity canvas itself does not respond to the resizing
* of it's container we have to manually do this. A width and height
* of 100% does not seem to work, so we have to fetch it's parent's
* size to adject the canvas.
* @type {boolean}
*/
adjustOnWindowResize?: boolean;
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Changes to the WebGL loader and templates introduced in ...
The following changes have been introduced to the WebGL loader and templates in Unity 2020.1: Unity now generates a build-specific WebGL ...
Read more >Upload ML-Agents-Worm - Hugging Face
We're on a journey to advance and democratize artificial intelligence through open source and open science.
Read more >Calling Unity scripts functions from JavaScript - Stack Overflow
In the createUnityInstance.then method, under loadingBar.style.display = "none"; , you should be able to put the SendMessage call.
Read more >13 Deploying your game to players' devices - Unity in Action ...
Throughout this book, you've learned how to program various games within Unity, but the crucial last step has been missing so far: deploying...
Read more >Hadoken - Popular Blocks
streamingAssetsUrl =new URL(c.streamingAssetsUrl,document.URL).href;var h=c. ... code -- missing end-of-block",n.mode=fe;break}if(n.lenbits=9 ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That worked first time! Thanks for your help
i’ve released version 7.1.12 adding support for Streaming Asset URLs and including updated documentation. If you have any more questions feel free to re-open this issue.
Thanks for opening an issue and best of luck with your project!