Adding a Camera Target is as simple as adding a component to a GameObject and then positioning the object as required.
- Add an empty
GameObjectto the scene.
- Add a
Camera Targetcomponent to the GameObject.
- Position the GameObject so that it's where the camera should be.
- You may find it helpful to use the Preview window shown in the Scene view while the GameObject is selected.
- Also consider using
GameObject -> Align With Viewto align the GameObject with the current Scene camera position
- Rename this GameObject to describe the view seen by the camera at this position. The GameObject's name is used by the
Nameproperty of the
CameraTargetand will be displayed on the frontend for WebGL users as a selectable item.
This step is optional
It is not required to change any properties of a Camera Target, but it may be desirable in some circumstances.
The following properties of a Camera Target can be adjusted if needed.
Determines the way that the camera will move to the target's position and rotation when it is selected.
Determines the position in the list that the Camera Target will appear.
Updated about 1 year ago