I should be able to, but I was not the one setting up Needle. I’m giving it a go now however, we’ll see how far I get (So far it still opens the other scene)
by user 219335701790064640
I should be able to, but I was not the one setting up Needle. I’m giving it a go now however, we’ll see how far I get (So far it still opens the other scene)
by user 219335701790064640
In that empty scene also add an ExportInfo component on an empty gameobject and press “Start Server” there
I got the new scene up an running.
But the FXCamera script (Which is a copy of yours) Does not seem to register as a ts component?
by user 219335701790064640
Is the script in /src/ or in an NpmDef?
the .ts file is in a folder named scripts (under projectName/frontend/script)
by user 219335701790064640
I know our setup differs from the standard as we work in a react environment
by user 219335701790064640
What is a npmDef?
by user 219335701790064640
Does it work in the browser? There are sometimes issues with the TS component headers not showing but doesn’t affect the runtime
In a nutshell, Needle’s equivalent to Unity’s AsmDefs to make reusable .ts packages with generated C# components
No.
A console log on the OnEnable method did not reach the browser
by user 219335701790064640
OK!
I created a new script with the copied script and it now works as expected!
by user 219335701790064640
Ah, maybe you accidentally made a new web project so you’re now in a separate src folder?
You can connect both your Unity scenes to the same webproject folder in the ExportInfo
I can absolutely believe that.
Is this the relevant place I’d change that?
by user 219335701790064640
Yep exactly – what you describe sounds like the “Project Folder” is currently different between the two scenes
Which (just as explanation for the future, wouldn’t change that now) is basically where NpmDefs are better than putting stuff in “/scripts/” since the same NpmDef package can be a dependency to multiple projects.
I get you. I will look into that.
I got the camera effect to work in the same project with the new scene.
Now the weird part of why it won’t work in the original scene…
I will Gradually add everything from scene 1 into the new scene and observe when it stops working, I think
by user 219335701790064640
I added the post processing effect in the new scene (funnily the first thing I tried) and it stopped woring
by user 219335701790064640
*working
by user 219335701790064640
Haha you can also bisect the other scene and turn things off until it works.
Haha, Yeah, I could
But as you see, the Post Processing is the culprit. As soon as it is turned on I can’t have two cameras
by user 219335701790064640