Free Camera Movement

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
fr4231
Posts: 20
Joined: Sun Nov 28, 2021 9:44 am

Free Camera Movement

Post by fr4231 »

Hello,

Using Invector (Dialogue System integration) and in certain cases I would like to keep the original camera and camera controls active (rotation, but keep the player’s position locked) while displaying dialogues, I don’t set anything in particular (no sequences, no extra actions, nothing), but the camera still seems to be locked anytime a dialogue gets activated. Any way to control that (fix camera or let free camera movement enabled)?

Thank you.
User avatar
Tony Li
Posts: 22131
Joined: Thu Jul 18, 2013 1:27 pm

Re: Free Camera Movement

Post by Tony Li »

Hi,

In those cases, you can run this line of code:

Code: Select all

GameObject.FindObjectOfType<Invector.vCharacterController.vThirdPersonInput>().SetLockCameraInput(false);
fr4231
Posts: 20
Joined: Sun Nov 28, 2021 9:44 am

Re: Free Camera Movement

Post by fr4231 »

thank you!
User avatar
Tony Li
Posts: 22131
Joined: Thu Jul 18, 2013 1:27 pm

Re: Free Camera Movement

Post by Tony Li »

Happy to help!
Post Reply