CG-Tespy / FungusSlotBasedSaveSystem_Unity

A replacement for the built-in Fungus Save System that is closer to the standard save systems you see in games.
MIT License
14 stars 3 forks source link

Problem with images #14

Closed Jailbait228 closed 3 years ago

Jailbait228 commented 3 years ago

Hi, thank you for your code. I tried to make "fade to view" after loading (to save image) by using marker keys but i have an error . "The object of type 'View' has been destroyed but you are still trying to access it. Your script should either check if it is null or you should not destroy the object." So how can i load my view with loading game? if i use this with "set say dialog" i have "StackOverflowException UnityEngine.Transform.get_position () (at :0) Fungus.CameraManager+<>c__DisplayClass27_0.b__0 () (at ..." image

CG-Tespy commented 3 years ago

Please provide steps on reproducing the problem

Jailbait228 commented 3 years ago

So, i use fungus view to have an image in my game. image

If i want to see my picture in chene i use command "Fade to view". image

So the game will look like image

If i want to load my game from save i need to return my image to scene. I think that i should use "Fade to View" again. image

But i have an error. image

Maybe i should use another method?

CG-Tespy commented 3 years ago

Interesting... It seems that the camera manager has an issue with doing things like panning right as a scene loads. My save system doesn't even touch any of the camera APIs, so this must be mainly an issue with Fungus itself.

I managed to avoid the problem on my end by adding a Wait Frames Command (set to wait just 1 frame) right before the Fade To View command. Please try that and let me know how it goes.

Jailbait228 commented 3 years ago

yes, everything is working, thanks for help)))