Skip to content

Null ref #18

Description

@spherous

Downloaded samples, added project to unity hub, opened it up in 2019.4.1f1 LTS, opened a scene, got this error. This does happen in all scenes.

NullReferenceException: Object reference not set to an instance of an object
UnityEngine.Rendering.HighDefinition.StaticLightingSky.UpdateCurrentStaticLightingSky () (at Library/PackageCache/com.unity.render-pipelines.high-definition@7.3.1/Runtime/Sky/StaticLightingSky.cs:127)
UnityEngine.Rendering.HighDefinition.StaticLightingSky.OnEnable () (at Library/PackageCache/com.unity.render-pipelines.high-definition@7.3.1/Runtime/Sky/StaticLightingSky.cs:184)

I went digging into StaticLightingSky.cs and found this on line 126/127

var defaultVolume = HDRenderPipeline.GetOrCreateDefaultVolume();
defaultVolume.sharedProfile.TryGet(skyType, out SkySettings defaultSky);

It seems defaultVolume.sharedProfile is null.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions