Forum rules - please read before posting.

Reset Cursor Follow

Hey, I set my gamecamera 2d to follow the cursor, and i would like to be able to force this camera to reset back to its original position. Is this possible?

Comments

  • What's the context? Unless the cursor is in the centre of the screen, the camera's always going to be offset according to it - unless you affect the property through script:

    GetComponent<GameCamera2D>().followCursor = false;
    

    Alternatively, you can have a second camera that's in the same position but without the option checked, and switch to it.

  • Thanks, the second camera was an easy solution i didnt think of!

  • Yes, you can reset the camera by storing its original position and setting it back via script when needed.

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.