Jump to content

NRE in new project, new scene, with just HDRP Time of Day enabled


Go to solution Solved by mroshaw,

Recommended Posts

Posted

Hi!

 

I have a fresh project, Unity 2021.3.11f with HDRP 12.1.7. Latest HDRP ToD. I have a new scene, to which I've added a plane and a couple of houses.

 

I've added HDRP Time of Day via the Procedural Worlds menu.

 

A couple of things:

 

HDRP says it's found local / global volumes in my scene when clearly they are none. I've noticed that before, I think, that it always displays that message, irrespective of whether there are volumes or not.

 

When I run, I get a Null Reference Exception in the console:

 

NullReferenceException: Object reference not set to an instance of an object
ProceduralWorlds.HDRPTOD.TimeOfDayProfileData.ApplyStarSettings (ProceduralWorlds.HDRPTOD.HDRPTimeOfDayComponents components, System.Single time) (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDayProfile.cs:752)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDay.UpdateStars (System.Boolean isDay, System.Single time, ProceduralWorlds.HDRPTOD.TimeOfDayProfileData data) (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDay.cs:2459)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDay.Update () (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDay.cs:907)

 

I've literally done nothing else, just added some 3D objects and HDRP ToD.

 

Any ideas?

 

Thanks!

  • Solution
Posted

DOH! My bad. This is because I recreated the "Time of Day Volume Profile" as I accidentally changed in. This has effectively broken the HDRP ToD prefab, as it can't find the reference to the volume profile: 

 

image.png.c8315299111cada7f469d1529161868c.png

 

My bad, apologies. Move along, nothing to see here!

  • STORM is here!

    STORM supercharges Unity to render massive open AAA worlds—on mobile and desktop—up to 10 times faster.

    STORM is your go-to tool for game makers and studios who are serious about performance and profitability.

  • Tell a friend

    Love Canopy - Procedural Worlds? Tell a friend!
×
×
  • Create New...