Skip to content
/ Voyage Public template
forked from OrionFive/Voyage

A simple test demonstrating interacting with the voyage creator studio.

License

Notifications You must be signed in to change notification settings

seang/Voyage

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Thanks to OrionFive for putting this original example together, I've forked here for compability updates

voyage

A simple test demonstrating interacting with the voyage creator studio.

This is the matching creator studio project.

Unity Version Differences

@seang: While building on Unity 2022.1.17f1 I found that I had to assign the unityInstance in the script onload in the generated index.html file in order for the rest of the code to work as expected:

window.unity = unityInstance
  script.onload = () => {
        createUnityInstance(canvas, config, (progress) => {
          progressBarFull.style.width = 100 * progress + "%";
        }).then((unityInstance) => {
          window.unity = unityInstance
          loadingBar.style.display = "none";
          fullscreenButton.onclick = () => {
            unityInstance.SetFullscreen(1);
          };
        }).catch((message) => {
          alert(message);
        });
      };

More details from users with similar issues here: https://forum.unity.com/threads/unityinstance-is-not-defined.950269/

About

A simple test demonstrating interacting with the voyage creator studio.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • ShaderLab 75.2%
  • HLSL 13.1%
  • HTML 5.6%
  • C# 3.0%
  • JavaScript 1.7%
  • CSS 1.4%