#My scripts doesn't work anymore after update

1 messages · Page 1 of 1 (latest)

umbral kite
#

Hello,

I'm using the react template which worked very well but after update, my getContext doesn't work anymore to use my scripts from my React UI.

How could I solved that ?

supple merlin
#

Hi @umbral kite does the scene load for you?

umbral kite
#

Not at all

#

That's my only warning

supple merlin
#

Ok thats fine. Its very likely because of a recent change in the js codegen (if you look in /src/generated/gen.js). Will have to check the react template later.

#

Sorry i missed that

umbral kite
#

Okay, got panicked because for a simple reload my work came from to very good to nothing appeared ^^'

#

Don't hesitate to let me know when the outcome is fixed.
Is there any way to go back to a previous version where the template react works?

supple merlin
#

Yes you just need to downgrade to your previous version using unity's package manager (Window/PackageManager) for example (or discard the version change in git!!)

umbral kite
#

I went back to version 2.60.4-pre and it works again, I didn't think I had to go back so far ^^'

supple merlin
#

The change i was referring to landed in 2.65 tho

umbral kite
#

I tried with the 2.62 version but it wasn't working :/

#

Let me know when getContext works perfectly in the react template and I'll test it on my project to see if it's the 1.65 change that is causing this problem.

supple merlin
#

Just to clarify: you refer to the r3f template or the react template?

supple merlin
#

Hi @umbral kite this is fixed in the next version

umbral kite
#

I will try that, thanks

supple merlin
#

Next version 🙂

umbral kite
#

Oh, the next version not released ^^' ok

supple merlin
#

No 😄

#

Sorry just wanted to let you know that it's fixed here 😄

umbral kite
#

Thank you aha x)

umbral kite
#

Hello !

I updated to the version 2.67.10 and it doesn't work (do I need to wait the 2.68 version ?)

#

As you see, no canvas

#

And no error in the console

#

I would like to update to the 2.67.10 to use the postprocessing tool with the editor sync but I think I can't

supple merlin
#

What does not work? Sorry

umbral kite
#

I use the react template.
And the canvas doesn't appear at all when I start my application

#

Normally, the canvas launch after loading and this script is called to load my models from my node server :

#

But it never happens

#

The only warning that I have is about using three-bvh which use normally three 0.141
Bah it worked perfectly fine with the 2.60.4 so there is no reason that it creates it

If it was, normally I would have an error but I haven't

supple merlin
#

In App.tsx try change this:

function NeedleEngine(props) {
  return <needle-engine>

to

function NeedleEngine(props) {
  const files = JSON.stringify(globalThis["needle:codegen_files"])
  <needle-engine src=files>
...
#

or just explictly the name of your glb in assets (that would be src="assets/sceneRoot.glb" for you if you only have this file)

umbral kite
#

Like it ?

#

It doesn't work :/

supple merlin
#

Try the second option. I think it's just missing the path to the glb (codegen changed a while ago, sorry I forgot to update the react template)

umbral kite
#

It works !

#

Yes I done

supple merlin
#

great

umbral kite
#

The second is working, thanks a lot Marcel

supple merlin
#

Will take a look alter at the template