Mirror/doc/Guides
vis2k b9f52fdb46
breaking: fix: #1151 - assign SyncVars before calling the Hook. Hook now passes old and new value instead of changing it from new value to old value, as this would break all SyncVar Hook projects silently. (#1416)
* test

* new docs

* adjust CheckForHookFunction to expect two hooks

* update example

* update example

* update example

* update test

* update example

* SyncVar.set: store value in oldValue variable

* SyncVar.set: pass old value to hook too

* TODO

* SyncVar deserialize store value in oldValue variable (for simple types)

* SyncVar deserialize: pass old value to hook too (for simple types)

* add test for GameObject type

* fix comment

* SyncVar deserialize: set value before calling hook

* add TODO

* SyncVar.set: set value before calling hook

* replace tests

* GO test

* SyncVar deserialize: move oldvalue code higher up so it applies to GO/NI too

* syntax

* SyncVar deserialize: pass oldValue to hook (GO/NI types)

* SyncVar deserialize: set netid before calling hook (GO/NI types)

* update comment

* update comment

* update comment

* shorter

* comment, TODO

* put oldValue code into separate cases again

* fix SyncVarEqual comparing the same two __goNetId values

* get rid of tmpValue

* fix weaver tests

* remove TODO

* SyncVar deserialize simple types: get rid of tmpValue here too

* remove tests
2020-01-10 16:17:13 +01:00
..
Communications Added video tutorial link. 2019-12-22 08:54:04 -05:00
DevServer Updated Dev Server docs and TOC 2020-01-06 04:23:57 -05:00
GameObjects Update doc/Guides/GameObjects/SceneObjects.md 2019-12-18 17:10:28 -07:00
Sync breaking: fix: #1151 - assign SyncVars before calling the Hook. Hook now passes old and new value instead of changing it from new value to old value, as this would break all SyncVar Hook projects silently. (#1416) 2020-01-10 16:17:13 +01:00
Attributes.md Eliminated Classes section 2019-09-20 23:34:03 -04:00
Authentication.md improve authentication doc 2019-12-22 10:26:23 -06:00
Authority.md Doc Update 2019-11-23 10:53:56 +09:00
ClientsServers.md Eliminated articles folder and moved all up to /doc 2019-09-20 22:19:58 -04:00
ClockSync.md Fix spelling mistakes 2019-12-07 23:31:48 +01:00
Conversion.md Update Conversion.md 2019-12-19 09:41:58 -05:00
DataTypes.md - Added video tutorials for built-in data types and custom data types. 2020-01-03 12:06:32 -05:00
IDs.md Eliminated articles folder and moved all up to /doc 2019-09-20 22:19:58 -04:00
index.md Eliminated articles folder and moved all up to /doc 2019-09-20 22:19:58 -04:00
NetworkBehaviour.md Updated NetworkBehaviour doc 2019-12-22 17:30:14 -05:00
Profiler.md Update Profiler.md (#1364) 2019-12-28 16:56:21 +01:00
Profiler.png Update profiler screenshot for version 1.4 2019-10-13 12:07:28 -05:00
toc.yml Updated Dev Server docs and TOC 2020-01-06 04:23:57 -05:00
UNetDirections.jpg Eliminated Classes section 2019-09-20 23:34:03 -04:00
Visibility.md Eliminated articles folder and moved all up to /doc 2019-09-20 22:19:58 -04:00
VisibilityCustom.md Eliminated articles folder and moved all up to /doc 2019-09-20 22:19:58 -04:00