|
Post by mandrake on Sept 8, 2023 21:50:15 GMT
Hi everyone,
I encountered a problem. So basically I change the scene by using the vLoadLevel script
When the transition is done I can not click ony my inventory anymore. Even closing with esc is not possible.
It looks like that because the. Player Controller (vShooterController_player) uses "dontdestroy on load".
In the past I encoutnered a similiar issue when I used UI with change scne with dont destroy on load. Any Idea how to solve this?
Thanks
Mandrake
|
|
|
Post by axbaby123 on Sept 9, 2023 0:46:25 GMT
You might be missing EventSystem in the next scene or some other Ui Mouse control script? Try using all the files from the good scene or duplicate the scene, rename it, add it to the Build then set it as the destination scene using vLoadLevel Trigger.
Check the Inventory Events on the Player Controller, you should have stuff like LockCursor and ShowCursor, if all Events are empty a duplicate of the good scene will have them all filled in properly.
Don't Destroy on Load isn't the problem and I don't think Invector has that working properly anyway. I don't think anything Invector does survives scene changes, "always on" without a Do Not Destroy Save System "singleton"or Game Manager "singleton", I could be wrong, persistent data.
|
|