File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
com.unity.netcode.gameobjects Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ Additional documentation and release notes are available at [Multiplayer Documen
31
31
- Fixed ` NetworkAnimator ` issue where the host client was receiving the ClientRpc animation updates when the host was the owner.(#2309 )
32
32
- Fixed ` NetworkAnimator ` issue with using pooled objects and when specific properties are cleaned during despawn and destroy.(#2309 )
33
33
- Fixed issue where ` NetworkAnimator ` was checking for animation changes when the associated ` NetworkObject ` was not spawned.(#2309 )
34
+ - Corrected an issue with the documentation for BufferSerializer (#2401 )
34
35
35
36
## [ 1.2.0] - 2022-11-21
36
37
Original file line number Diff line number Diff line change @@ -7,14 +7,10 @@ namespace Unity.Netcode
7
7
/// <summary>
8
8
/// Two-way serializer wrapping FastBufferReader or FastBufferWriter.
9
9
///
10
- /// Implemented as a ref struct for two reasons:
11
- /// 1. The BufferSerializer cannot outlive the FBR/FBW it wraps or using it will cause a crash
12
- /// 2. The BufferSerializer must always be passed by reference and can't be copied
10
+ /// Implemented as a ref struct to help enforce the requirement that
11
+ /// the BufferSerializer cannot outlive the FBR/FBW it wraps or using it will cause a crash
13
12
///
14
- /// Ref structs help enforce both of those rules: they can't ref live the stack context in which they were
15
- /// created, and they're always passed by reference no matter what.
16
- ///
17
- /// BufferSerializer doesn't wrapp FastBufferReader or FastBufferWriter directly because it can't.
13
+ /// BufferSerializer doesn't wrap FastBufferReader or FastBufferWriter directly because it can't.
18
14
/// ref structs can't implement interfaces, and in order to be able to have two different implementations with
19
15
/// the same interface (which allows us to avoid an "if(IsReader)" on every call), the thing directly wrapping
20
16
/// the struct has to implement an interface. So IReaderWriter exists as the interface,
You can’t perform that action at this time.
0 commit comments