Skip to content

Commit

Permalink
docs: Update networkedvar.md (Unity-Technologies#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwalsh-unity authored Oct 8, 2020
1 parent 5f474e5 commit 6bb5131
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/_docs/the-basics/networkedvar.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ Since the NetworkedVar container is a wrapper container around the value, the va
</div>
</div>

<div class="panel panel-warning">
<div class="panel-heading">
<h3 class="panel-title">Note</h3>
</div>
<div class="panel-body">
You must remember to add the NetworkedObject component to the game object to which your script belongs
</div>
</div>

To create your own NetworkedVar container, simply create a class with the INetworkedVar interface and declare it as a field of a NetworkedBehaviour. To learn how to write your own containers for more complex structures, see the NetworkedVar implementation. To learn how to do custom delta encoding on complex structures. See the SyncedDictionary and SyncedLIst implementations.

### Permissions
Expand Down

0 comments on commit 6bb5131

Please sign in to comment.