Get started with the sample project (3D Sample Scene HDRP)
Verification environment
- Windows
-
- Windows 11
- Unity Hub
-
- 3.0.0
- Unity Editor
-
- 2020.3.25f1
At first
There are several sample projects, The "3D Sample Scene (HDRP)" that we will move this time has a slightly wider range that can be moved and it is judged to hit the wall, so let's move it.
However, since 3D uses a slightly more expensive function, it may be better to move another sample when developing in an environment with low 3D rendering performance.
Create a project
Launch Unity Hub from the Start menu.
Select "Project" from the menu on the left and click the "New Project" button.
Select Samples from the left menu, then select 3D Sample Scene (HDRP) from the middle list. Since we are not modifying the sample project, the project name and save location are appropriate assuming that we will delete it later.
Run the game
I won't add or edit anything in particular, so I'll just click the play button in the upper center and try to run the game.
You can get it moving as soon as you run the game. It consists of three rooms where you can walk around. The operation method is as follows.
Behavioral | Keyboard and Mouse | Gamepad (XInput) |
---|---|---|
walk | ↑↓←→ or WASD | Left stick |
Camera operation | Mouse movement | Right stick |
In this sample, the representation of light is set to realistic, and the luminosity changes when moving from a dark place to a bright place, as shown in the figure below. In addition, wall hit detection is also implemented, so you cannot move over the wall, and you can go up and down the step.
This project was created from a template, so you can freely tweak the data. If something goes wrong, you can restore it by creating it as a sample project again.