mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
fix(Edgegap Plugin): fix NRE when reloading assets
This commit is contained in:
parent
a27a0aedc3
commit
c1be7b30e3
@ -164,6 +164,10 @@ public async void CreateGUI()
|
|||||||
protected void OnDisable()
|
protected void OnDisable()
|
||||||
{
|
{
|
||||||
#if UNITY_2021_3_OR_NEWER // MIRROR CHANGE: only load stylesheet in supported Unity versions, otherwise it shows errors in U2020
|
#if UNITY_2021_3_OR_NEWER // MIRROR CHANGE: only load stylesheet in supported Unity versions, otherwise it shows errors in U2020
|
||||||
|
// MIRROR CHANGE: sometimes this is called without having been registered, throwing NRE
|
||||||
|
if (_debugBtn == null) return;
|
||||||
|
// END MIRROR CHANGE
|
||||||
|
|
||||||
unregisterClickEvents();
|
unregisterClickEvents();
|
||||||
unregisterFieldCallbacks();
|
unregisterFieldCallbacks();
|
||||||
SyncObjectWithForm();
|
SyncObjectWithForm();
|
||||||
|
Loading…
Reference in New Issue
Block a user