Forum rules - please read before posting.

Constant ID attached but camera not saving?

edited September 2024 in Technical Q&A

Hi all,

Hope you are doing well! So I was combing through some old threads that also had a similar issue where the Navcam position was not being saved -- however, it looks like my other cameras / everything else is correct -- is there any reason why this may be?

I have a constant ID attached to the camera, which seemed to be the solution for most people, but unfortunately it didn't seem to fix my issue.

Any help is appreciated, thank you!

Comments

  • Attaching a Constant ID component only allows the MainCamera to save a reference to the camera - i.e. save which GameCamera is actually active at the time. It will not save any specific data about it, such as its position.

    The position of a GameCamera is normally based on its Target, by default the Player, and so doesn't need manually saving. What camera type are you relying on, and are you moving it manually?

    As this is a visual issue, any screenshots you can share will help clarify the situation.

  • edited September 2024

    Yes, I am moving the camera manually! It jumps around through the scene since I'm teleporting the player.

    I tried making the player the target, but it didn't seem to fix the issue unfortunately, so I removed this now.

    Attached is the video of the issue -- the scene, the loading of the save files, and the cameras: https://drive.google.com/file/d/1fQ3K3Y3SjbFph52P-TYbgK2cA3fp4Lyr/view?usp=drive_link

    I have this issue when saving the camera transform as global is happening too.

  • It's likely a case of the GameCamera's position-setting being overridden internally - it's not designed to be teleported manually in this way.

    Best to use separate cameras for each "room" in the scene. If each camera remains frozen, you can use the "SimpleCamera" prefab in the Scene Manager rather than a GameCamera.

  • That was it! Thank you so much! :)

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.