mroshaw Posted October 14, 2022 Posted October 14, 2022 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 mroshaw Posted October 14, 2022 Author Solution Posted October 14, 2022 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!
Recommended Posts