Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scalar not passing camera position with Unity 2021.3.8f1 LTS #1

Open
apjmason opened this issue Nov 13, 2023 · 2 comments
Open

Scalar not passing camera position with Unity 2021.3.8f1 LTS #1

apjmason opened this issue Nov 13, 2023 · 2 comments

Comments

@apjmason
Copy link

Hi all,

I'm really excited about this integration and looking forward to getting it working. Thanks for all the dev and the instructions for setup in the guide!

I managed to get a test version working last year in Unity 2018.3.0f2 with the regular ScalarTemplate and the file hosted on a reclaim server. I'm trying to build a new project in the 2021.3.8f1 LTS release of Unity, and having trouble with getting Scalar to pass message to the WebGL scene.

The test project loads fine, but the annotation editor's "Set all values from current view" button doesn't update or log any errors. I've manually changed the values on a few annotations, but clicking them doesn't move the camera in the scene. Any ideas?

My test media page is here with 3 annotations attached if you can see anything in the DevTools inspector I'm missing

I did get a couple of errors for deprecated functions that I've replaced in my local fork, but haven't been able to get it working yet (working on windows so the fork is a little messy).

  • Pointer_stringify() deprecated. Replaced with UTF8ToString() in jslib plugin
  • UnityWebRequest.isNetworkError and isHttpError, replace with Result.ConnectionError and Result.ProtocolError in Scalar.API

Any help or updates appreciated!

@apjmason
Copy link
Author

@eloyer first, my condolences on the loss of Angel David Nieves. I was shocked to hear the news and so sad to learn of his passing.

I'd really love to get this integration working on my site and update it for more recent versions of Unity. Is there any active development, or should we explore on our own? Thanks

@eloyer
Copy link
Collaborator

eloyer commented Jan 24, 2024

Thanks @apjmason , and apologies for the long delay in replying — my Scalar time is pretty constrained these days. This looks like a CORS (cross-domain) issue; Scalar (or really the web browser) apparently wants the Unity project to be on an approved domain in order to receive its messages. What would likely make the most sense would be for you to set up your own install of Scalar (the easiest way is through Reclaim Hosting) where you could also upload the Unity files, so CORS restrictions wouldn't be triggered. I'll add this info to the User's Guide as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants