Detailed Setup
Last updated
Last updated
Tag Setup:
Raycast:
3D phone model should be tagged Phone
Trigger:
3D phone model should be set to Untagged
FPSController should be tagged Player
1). Place the FPSController prefab in your scene from the Phone System > Prefabs folder
On the MainCamera – Attach PhoneInteractor Script. (If not already).
Set the RaycastDistance on the raycast script
Set the FPSController object to the tag of Player. (Can be changed in the PhoneTrigger script)
2). Add the UIManager object into the hierarchy and add the following references:
Crosshair: Add the UI_Crosshair image from the child below
InteractPrompt: Add the UI_InteractPrompt from the child below
Phone Type Input Fields: Add out of the UI_Type_InputFields from the children below
Phone Type Canvas: Add the canvas' to the correct slot
4). Add ONE AudioManager to the hierarchy:
Add the ScriptableObjects named SO_DeadDialTone and so on from the SOs folder
5). Add ONE Disable Manager to the hierarchy:
Make sure to add the FPSController object to this slot
Check the "Using different character controllers" on the left bar for more information on changing this option
6). Add ONE InputManager - Make sure to set the inputs you'd like.
7). You can choose to add one of the Raycast_Prefabs to your scene. (Please drag one of those out to the hierarchy! This should include: A phone controller, phone model, and various miscellaneous objects
Use the Raycast Prefabs if you want a First Person Interaction but the “Trigger” prefabs for a 3rd person or trigger style interaction!
8). Open any of the Raycast or Trigger Phone collections and find the phone 3D model:
Set tag: Phone (If using for a FirstPerson setup)
Has the PhoneItem script attached with the controller added to the slot
Has a Box Collider
9). Take a look at the Controller script for that set of objects - See settings below:
Phone Type:
The type of phone UI this will use, set to the appropriate type
Character Limit:
Set character limit, based on the code you’ve just chosen
Phone Codes:
This is an array which can be used to add as many different number combinations as you desire.
Increase the “Size” option to add more slots.
You will need to add your “Phone Code” to the corresponding slot.
Make sure the code is NOT longer than your character limit as above.
Add a SO audioclip to this slot!
Sound Effects:
Add the ScriptableObject sound clips from the SO folder
Trigger Type:
Set this to true and add the trigger object if you're using a trigger type. See the Support section of this document for more details