Guide
Demos
Try the controller before you change anything. Three guided scenes show movement and camera, items and events, and finger grips. Each scene has an on-screen guide with its controls and live player state. Two prefabs give you a complete player in a few drags.
On this page
Demo scenes#
The scenes are in Assets/FBSystem/Scenes/Demos/. Press F1 in a scene to hide or show its guide panel.
| Scene | What it shows |
|---|---|
01_Movement_Camera | Walking, sprinting, jumping and crouching. The stations are a crouch tunnel with a low ceiling (you cannot stand up under it), a ramp, stairs, uneven ground and a turn pad for re-steps when you turn in place. The panel shows the locomotion state and the events. |
02_Items_Events | Picking up, switching (with the holster animation), using and dropping a one-handed flashlight and a two-handed box. The panel shows the hand state and a live feed of the C# events. |
03_Finger_Grips | Finger grips on both items. Press H to turn the grips off and compare them with the plain animation. |
Controls#
| Key | Action | Scenes |
|---|---|---|
| W A S D, mouse | Move and look | all |
| Shift | Sprint while moving | all |
| Space | Jump | all |
| C | Crouch (toggle) | all |
| E | Pick up the item you look at | 02 |
| 1, 2, mouse wheel | Switch item. In 03 the keys select the flashlight (1) and the box (2). | 02, 03 |
| Q | Put the item away | 02, 03 |
| F | Use the held item | 02 |
| G | Drop the held item | 02 |
| H | Finger grips on or off | 03 |
| F1 | Show or hide the guide panel | all |
Ready-made prefabs#
Both prefabs are in Assets/FBSystem/Demo/Prefabs/.
FBSystem_CameraRig- The camera: a Main Camera with a Cinemachine Brain, and a Cinemachine camera. The player finds the Cinemachine camera automatically.
FBSystem_Player- A complete player with the Humanoid demo character. It has the full controller, all model IK (head, hand, spine and foot planting), finger grips, and an item container with two items: the flashlight in slot 1 and the box in slot 2. The prefab also contains the demo scripts
PlayerInventory,PlayerInteractionandPlayerDropSystem. The character's first-person mesh is cut with FPCutter, so the head is hidden in first person.
Use the prefabs in your scene#
- Open a scene with a floor that has a collider.
- Drag
FBSystem_CameraRiginto the scene. Delete any other Main Camera. - Drag
FBSystem_Playeronto the floor and press Play.
The prefabs reference the shipped PlayerSettings asset in Assets/FBSystem/Project/, which is tuned for the demo character. For your own character, use the Setup Wizard instead.
Use the demo scripts as templates#
The demo scripts live in Scripts/Player/Demo and use the namespace Player.Demo. They are examples and not part of the core API.
PlayerEventLoggerlogs item and locomotion events to the Console. It is not on the prefab or in the scenes. Add it to the player to see every event in order.PlayerInteractionandPlayerDropSystemshow pickup and drop. The interaction reads the E key and uses its Interactable Layer. In the demo this is layer 4.DemoGripToggletoggles the finger grips with H.