Jump to content

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

Go to solution Solved by mroshaw,

Recommended Posts



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?



Link to comment
Share on other sites

  • Solution

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: 




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

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Tell a friend

    Love Canopy - Procedural Worlds? Tell a friend!
  • Need help?

    We work with some of the biggest brands in global gaming, automotive, technology, and government to create environments, games, simulations, and product launches for desktop, mobile, and VR.

    Our unique expertise and technology enable us to deliver solutions that look and run better at a fraction of the time and cost of a typical project.

    Check out some of our non-NDA work in the Gallery, and then Contact Us to accelerate your next project!

  • Create New...