question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

streamingAssetsUrl Missing in v7

See original GitHub issue

The 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:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
gamereatcommented, Jun 11, 2021

That worked first time! Thanks for your help

0reactions
jeffreylanterscommented, Jun 11, 2021

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found