Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when new scene is loaded #3

Closed
lemonfizz56 opened this issue Nov 27, 2019 · 2 comments
Closed

Issue when new scene is loaded #3

lemonfizz56 opened this issue Nov 27, 2019 · 2 comments

Comments

@lemonfizz56
Copy link

@lemonfizz56 lemonfizz56 commented Nov 27, 2019

It locks the camera in place by constantly updating it to its starting location so any scripts wanting to move the camera don't work

@FaiyazMdAbdul
Copy link

@FaiyazMdAbdul FaiyazMdAbdul commented Nov 27, 2019

same issue.. I am using gyroscope controls.

@andersonaddo
Copy link
Owner

@andersonaddo andersonaddo commented Nov 27, 2019

That is the expected behaviour, actually. It's mentioned in the documentation.
The camera will be forced to be at rest at the origin (plus any offsets you place into the offset fields).
If you have other scripts that plan to also alter the position and orientation of the camera, then you should place the camera into a parent gameobject and make it's local position and orientation 0, 0, 0. All your other scripts should alter the position and orientation of the parent gameobject, while EZ scripts will alter the camera's local position relative to its parent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.