#My scripts doesn't work anymore after update
1 messages · Page 1 of 1 (latest)
Hi @umbral kite does the scene load for you?
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
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?
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!!)
I went back to version 2.60.4-pre and it works again, I didn't think I had to go back so far ^^'
The change i was referring to landed in 2.65 tho
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.
Just to clarify: you refer to the r3f template or the react template?
Hi @umbral kite this is fixed in the next version
Next version 🙂
Oh, the next version not released ^^' ok
Thank you aha x)
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
What does not work? Sorry
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
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)
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)
great
The second is working, thanks a lot Marcel
Will take a look alter at the template