- 最后登录
- 2014-10-23
- 注册时间
- 2011-7-19
- 阅读权限
- 90
- 积分
- 81303
- 纳金币
- -1
- 精华
- 11
|
很常用的一个功能实现,即分割视图,下面是比较简洁明了一篇教程,新手可以学习下!
First, duplicate your Main Camera (in the Hierarchy section, select your Main Camera object, then press CTRL + D)
You need to set both cameras appropriately.
The first camera, change
X (X coordinate) to 0
Y (Y coordinate) to 0.5 (starts from the middle of the screen, the Y position)
H (Height) to 0.5 (0.5 means 50%)
The second camera, change
X (X coordinate) to 0
Y (Y coordinate) to 0
H (Height) to 0.5 (50% of the screen)
You can look at the pictures below:
You also need to set Targets of these cameras - best to set the two characters as the targets. In the CarEdu project, both car objects' (Car, Car2) CenterOfMass elements were set as targets.
That's all if you mean creating the splitscreen multiplayer mode cameras. See the splitscreen input tutorial for setting up keys for two players:
|
|