1
Fork 0
mirror of https://github.com/Steffo99/better-tee.git synced 2024-11-26 08:44:19 +00:00
better-tee/Assets/Packages/Mirror/Examples/AdditiveScenes/README.md
2019-09-16 00:28:36 +02:00

25 lines
1.5 KiB
Markdown

# Additive Scenes Example
IMPORTANT: Make sure you have a layer in project settings called Player for this example to work well.
In Build Settings, remove all scenes and add all of the scenes from the Examples\AdditiveScenes\Scenes folder in the following order:
- MainScene
- SubScene
Open the MainScene in the Editor and make sure the Sub Scenes list in the Network scene object contains the SubScene scene. This is already setup by default, but if the MainScene was opened and saved before putting the scenes in the Build Settings list, the Sub Scenes list may be cleared accidentally.
File -> Build and Run
Start up to 3 built instances: These will all be client players.
Press Play in the Editor and click LAN Host in the editor
- This will be the host and the 1st player of up to 4. You can also use LAN Server if you prefer.
Click LAN Client in the built instances.
- WASDQE keys to move & turn your player capsule.
- There are objects in the corners of the scene hidden by Proximity Checkers.
- The big area in the middle is where the subscene will be loaded when you get near the shelter.
- There are also networked objects inside the subscene, also with Proximity Checkers.
- Since subscenes are only loaded for individual clients, other clients that are outside the middle Zone won't see what those in the subscene can see.
- If you play a built instance as Host or Server and play as client in the editor, you'll see the subscene content load and unload in the hierarchy as you move in and out of the middle Zone.