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

快速上手:制作第一个游戏 #1748

Closed
ListenLeeLee opened this issue Aug 17, 2021 · 4 comments
Closed

快速上手:制作第一个游戏 #1748

ListenLeeLee opened this issue Aug 17, 2021 · 4 comments

Comments

@ListenLeeLee
Copy link

URL : https://github.com/cocos-creator/creator-docs/blob/master/zh/getting-started/first-game/index.md

为了能在运行时看到物体,我们需要将场景中 Camera 的参数进行一些调整,Position 设置为(0,0,13),Color 设置为(50,90,255,255),然后点击工具栏中心位置的 Play 按钮。

经过以上参数调整后,并不能看到场景中的角色,原因是新建场景中摄像机有个默认Rotation,要想实现文档中的效果,需要把Rotation改成0

@ljybill
Copy link

ljybill commented Oct 12, 2021

想问下,我能看到角色了,但是当我根据教程增加了菜单页面,我的相机并不能捕捉到菜单的UI

@xunyi0
Copy link
Contributor

xunyi0 commented Oct 13, 2021

@ljybill Layer 属性有设置跟相机一样的吗

@ljybill
Copy link

ljybill commented Oct 13, 2021

@ljybill Layer 属性有设置跟相机一样的吗

是的,我看官方完整代码对比之后,修改了相机参数就可以了。我打算再读读文档了解相机参数都控制什么

@xunyi0
Copy link
Contributor

xunyi0 commented Oct 13, 2021

可以参考这篇 Camera 组件,如果有哪里写错了或者写得不好理解的,欢迎继续反馈哈

@xunyi0 xunyi0 closed this as completed Feb 15, 2022
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

No branches or pull requests

3 participants