Customizing Controls

Tutorial

·

intermediate

·

+10XP

·

15 mins

·

Unity Technologies

Customizing Controls

In this tutorial, we’ll go over where to find the script that controls motion in a Scene, as well as how to adjust settings.

Languages available:

1. Introduction

The Reflect Viewer uses the standard input system that you would expect to find in a game. Since not everyone is familiar with the WASD or mouse-based movement typical of a 3D Scene navigation system, it’s essential to understand how this system works as well as how to adjust it to your preferences. In this tutorial, we’ll go over where to find the script that controls motion in a Scene, as well as how to adjust settings.

For this tutorial, you will need:

  • The Reflect Viewer project downloaded from Github
  • A Pro license for the Unity Editor

2. Understanding the Scene Movement Script

1. Download and open the Reflect project from Github.

2. Open the Reflect scene from Assets > Scenes.

3. Run the project to see how the camera moves in the scene. Close the project when you are done.

4. The camera movement is controlled by a settings asset and you can change the settings by selecting the FreeFlyCameraSettings asset under Assets > Settings.

Selecting this asset will open the settings in the Inspector panel

The following parameters are available via the script. The movement of the camera is based on a scale to give a more natural movement in the scene. This means that there is a general delay and curve on the movement that is controlled by the setting below.:

  • Max Time To Travel Min: The maximum time in seconds to travel the entire scene when the camera is at the minimum speed.
  • Max Time to Travel Full: The maximum time in seconds to travel the entire scene when the camera is at the maximum speed.
  • Max Time to Accelerate: The maximum time in seconds for the camera to accelerate from minimum to maximum speed.
  • Min Speed Scaling: The scaling factor on the camera minimum speed.
  • Max Speed Scaling: The scaling factor on the camera maximum speed.
  • Acceleration Scaling: Scaling on the camera acceleration.
  • Waiting Deceleration: Deceleration scaling. A higher value will mean the camera will take longer to go back to minimum speed when not accelerating.

3. Next Steps

This tutorial covered movement options in the Reflect Viewer Scene. You can set the sensitivity of these motions to your own preferences.

Complete this tutorial