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

Camera follow game object before Game's 'prerender' event #5253

Closed
rexrainbow opened this issue Aug 7, 2020 · 1 comment
Closed

Camera follow game object before Game's 'prerender' event #5253

rexrainbow opened this issue Aug 7, 2020 · 1 comment

Comments

@rexrainbow
Copy link
Contributor

I try to draw game objects on render texture, with the related position of game window. It works fine if camera dose not follow a game object (startFollow). I can't get camera's final scrollX, scroll if camera follows game object.
Camera follows game object in game.scene.render, there is no event I can use to get the result of camera scrolling.
My workaround is replacing built-in camera following by setting camera scrolling manually under 'prerender' event.

@photonstorm
Copy link
Collaborator

See the new FOLLOW_UPDATE_EVENT to deal with this situation.

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

No branches or pull requests

2 participants