Skip to content
This repository was archived by the owner on Feb 16, 2024. It is now read-only.
This repository was archived by the owner on Feb 16, 2024. It is now read-only.

"NullReferenceException" in Observable.EveryLateUpdate when Disabling Domain Reloading #490

@kyubuns

Description

@kyubuns

When I set Domain Reload to disable in PlayerSettings > Editor > Enter PlayMode Options,
the following code throws NullReferenceExteption.
After setting Domain Reload to disable, enter PlayMode twice.

NullReferenceException: Object reference not set to an instance of an object
UniRx.MainThreadDispatcher.LateUpdateAsObservable () (at Assets/Plugins/UniRx/Scripts/UnityEngineBridge/MainThreadDispatcher.cs:643)
UniRx.Observable.EveryLateUpdate () (at Assets/Plugins/UniRx/Scripts/UnityEngineBridge/Observable.Unity.cs:717)
Test.Start () (at Assets/Test.cs:8)
using UniRx;
using UnityEngine;

public class Test : MonoBehaviour
{
    public void Start()
    {
        Observable.EveryLateUpdate()
            .Subscribe(x => Debug.Log("a"));
    }
}

Environment

  • Unity2020.3.4f1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions