You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- The results will be opened in a new window automatically as shown below.
21
21
22
-

22
+

23
23
24
24
## How to Create a Network Synced Prop
25
25
26
26
Props can be network synced and generated at runtime. Below is example of how to load a network synced Pickup Interactable cube:
27
27
28
28
- Add a cube object in the scene hierarchy.
29
29
30
-

30
+

31
31
32
32
- Add a Basis Pickup Interactable component. This allows a local player to pick up and move the cube.
33
33
@@ -39,55 +39,75 @@ Props can be network synced and generated at runtime. Below is example of how to
39
39
40
40
- Add a Basis Prop component, enter an Asset Bundle Name and press the 'Create Prop Bee File' button. The generated .bee files will be used by the Basis Runtime Loader to load the network synced cube into a scene.
41
41
42
-

- In the Unity Editor toolbar, select Basis and click on the Loadable Config Editor. This Basis config editor is used to genertate XML files which Basis can use to spawn props into a scene.
57
57
58
-

- You can check if your prop is loaded correctly by the server. To do so, run the *BasisNetworkConsole.exe*, which is located at *Basis\Basis Server\BasisServerConsole\bin\Debug\net9.0*.
81
98
82
-
-*Note:*
83
-
- You will need to register yourself as an admin for the prop to be able to load. You can do this by entering entering the command */admin add* did:key:\<YOUR-KEY\> or by editing *Basis\Basis Server\BasisServerConsole\bin\Debug\net9.0\config\admins.xml*.
84
-
- You can find your key by opening up the Basis application and selecting your player's UUID in the Admin settings.
99
+
<Callouttype="info">
100
+
You will need to register yourself as an admin for the prop to be able to load. You can do this by entering entering the command */admin add* did:key:\<YOUR-KEY\> or by editing *Basis\Basis Server\BasisServerConsole\bin\Debug\net9.0\config\admins.xml*.
101
+
102
+
You can find your key by opening up the Basis application and selecting your player's UUID in the Admin settings.
103
+
</Callout>
104
+
85
105
86
-

106
+

87
107
88
108
### Setting up the Basis Scene and Testing the Pickup Cube
89
109
90
-
- Before you can test out the network synced pickup cube, ensure that your scene has a Basis Scene component attached to an empty game object.
110
+
- Before you can test out the network synced pickup cube, ensure that your scene has a Basis Scene component attached to an empty Gameobject.
91
111
92
112
- Click 'Create Scene Bee File'.
93
113
@@ -97,8 +117,8 @@ Props can be network synced and generated at runtime. Below is example of how to
97
117
98
118
- Ensure Persistent is selected so that synced changes persist for late-joining players.
99
119
100
-

120
+

101
121
102
122
- Open up the 'Initialization' scene and press play. This initialises the created scene and network objects. The next time when you load the scene through the server while running the basis application, all players will be able to interact with the network synced cube.
103
123
104
-

124
+

0 commit comments