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

should init camera in preload #7073

Merged
merged 1 commit into from Aug 4, 2020

Conversation

2youyou2
Copy link
Contributor

@2youyou2 2youyou2 commented Aug 4, 2020

Re: cocos-creator/2d-tasks#

Changes:

  • 在用户代码中 onLoad 获取不到 camera 的正确尺寸,改到在 preload 中初始化 camera

@holycanvas holycanvas merged commit f2c1aa4 into cocos:v2.4.3-release Aug 4, 2020
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants