Third 您所在的位置:网站首页 subscenecom Third

Third

2023-03-14 21:43| 来源: 网络整理| 查看: 265

Third-person standard character setup

To set up a third-person standard character, perform the following steps:

Open the Package Manager Window (Window > Package Manager) and select the Character Controller package. Open the Samples tab, and then select Import to import the Standard Characters assets in your project. Unity adds the standard character files to your project, under the Samples/Character Controller/[version]/Standard Characters folder. Create a subscene, if you haven't already. Navigate to the Samples/Character Controller/[version]/Standard Characters/ThirdPerson/Prefabs folder. Drag the ThirdPersonCharacter, ThirdPersonPlayer, and OrbitCamera prefabs into the subscene. Select the ThirdPersonPlayer GameObject. In the Inspector, navigate to the Third Person Player Authoring component and under Controlled Character, set the ThirdPersonCharacter GameObject. Under Controlled Camera, set the OrbitCamera GameObject: Navigate to the Samples/Character Controller/[version]/Standard Characters/Common/Scripts/Camera folder. Drag the MainEntityCameraAuthoring script onto the OrbitCamera GameObject: Make sure your scene has a camera GameObject that isn't in a subscene. Drag the MainGameObjectCameraAuthoring script onto the camera. This component marks the camera as the GameObject that must copy the entity marked with MainEntityCameraAuthoring every frame:


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有