case3修改
This commit is contained in:
@@ -59,7 +59,9 @@ head:
|
||||
|
||||
- 安装 `Input System` 与 `Cinemachine`
|
||||
|
||||
<img src="/image/studycase1/安装俩个包.png" data-fancybox="gallery"/>
|
||||
<img src="/image/studycase1/安装俩个包.png" data-fancybox="gallery"/>
|
||||
|
||||
> 提示:安装 Input System 后,Unity 会提示重启并切换至新输入系统,务必确认。
|
||||
|
||||
- 导入示例
|
||||
|
||||
@@ -73,11 +75,21 @@ head:
|
||||
|
||||
<img src="/image/studycase1/从示例项目导入模型到场景.png" data-fancybox="gallery"/>
|
||||
|
||||
> 提示:安装 Input System 后,Unity 会提示重启并切换至新输入系统,务必确认。
|
||||
- 模型目前是紫色的,材质需要进行修改,搜索所有材质
|
||||
|
||||
<img src="/image/studycase1/搜索所有材质.png" data-fancybox="gallery"/>
|
||||
|
||||
- 依次点击,切换到URP
|
||||
|
||||
<img src="/image/studycase1/切换到URP.png" data-fancybox="gallery"/>
|
||||
|
||||
- 点击确定,等待完成
|
||||
|
||||
<img src="/image/studycase1/点击确定.png" data-fancybox="gallery"/>
|
||||
|
||||
## 5.勇者行迹录-章节任务
|
||||
### 添加虚拟相机根节点
|
||||
- 为相机添加 `CinemachineBrain`作为根节点以便统一控制
|
||||
- 在主相机`Main Camera`上添加 `CinemachineBrain`作为根节点以便统一控制
|
||||
|
||||
<img src="/image/studycase1/添加虚拟相机根节点.png" data-fancybox="gallery"/>
|
||||
|
||||
@@ -97,18 +109,23 @@ head:
|
||||
<img src="/image/studycase1/配置虚拟相机.png" data-fancybox="gallery"/>
|
||||
|
||||
### 创建 InputActions
|
||||
- 创建`Resources`文件夹,右键 `Create > Input Actions`,,命名为 `PlayerInputActions`
|
||||
- 创建`Resources`文件夹,右键 `Create > Input Actions`,命名为 `PlayerInputActions`
|
||||
|
||||
<img src="/image/studycase1/创建InputActions.png" data-fancybox="gallery"/>
|
||||
<img src="/image/studycase1/创建InputActions.png" data-fancybox="gallery"/>
|
||||
<img src="/image/studycase1/命名为PlayerInputActions.png" data-fancybox="gallery"/>
|
||||
|
||||
- 创建 `Player` Action Map,添加 `Move`(Vector2)与 `Jump`(Button)
|
||||
|
||||
<img src="/image/studycase1/创建playerinputactions.png" data-fancybox="gallery"/>
|
||||
|
||||
- Move 绑定 `WASD` ;Jump 绑定 `space`
|
||||
- Move 绑定 `WASD`
|
||||
|
||||
<img src="/image/studycase1/创建4向绑定.png" data-fancybox="gallery"/>
|
||||
<img src="/image/studycase1/绑定wasd.png" data-fancybox="gallery"/>
|
||||
<img src="/image/studycase1/绑定wasd.png" data-fancybox="gallery"/>
|
||||
|
||||
- Jump 绑定 `space`
|
||||
|
||||
<img src="/image/studycase1/jump绑定space.png" data-fancybox="gallery"/>
|
||||
|
||||
### 编写脚本`ThirdCharacterController.cs`
|
||||
- 在 `Assets\Scripts\StudyCase1` 下创建脚本 `ThirdCharacterController`
|
||||
|
||||
Reference in New Issue
Block a user