Jump to content

Can't access any "HDRP Time Of Day Override Volume" components in scene


mroshaw
Go to solution Solved by Josh,

Recommended Posts

Hi again!

After tweaking my "HDRP Time Of Day Override Volume" components, for some reason I'm now unable to access any of them in the Inspector / Editor.

The component in the Editor is empty:

image.png.68004e0114056a97262ce086aa88ac44.png

The console is throwing NRE errors:

NullReferenceException: Object reference not set to an instance of an object
ProceduralWorlds.HDRPTOD.HDRPTimeOfDayOverrideVolumeController.ProcessVolumes (System.Boolean isDay) (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDayOverrideVolumeController.cs:162)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDayOverrideVolumeController.CheckState (System.Boolean overrideApply) (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDayOverrideVolumeController.cs:132)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDayOverrideVolumeController.AddOverrideVolume (ProceduralWorlds.HDRPTOD.HDRPTimeOfDayOverrideVolume volume, ProceduralWorlds.HDRPTOD.OverrideTODType type) (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDayOverrideVolumeController.cs:89)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDayOverrideVolume.SetupVolumeTypeToController () (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDayOverrideVolume.cs:245)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDayOverrideVolumeEditor.OnEnable () (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/Editor/HDRPTimeOfDayOverrideVolumeEditor.cs:21)
NullReferenceException: Object reference not set to an instance of an object
ProceduralWorlds.HDRPTOD.HDRPTimeOfDayOverrideVolumeEditor.OnInspectorGUI () (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/Editor/HDRPTimeOfDayOverrideVolumeEditor.cs:45)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass59_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <d2a4066bda954b169ad464ee5a8f02ff>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

I'm on Unity 2021.3.6f1.

Thanks!

Link to comment
Share on other sites

Having these components in Prefabs seems to drive the "HDRP Time of Day Volume Override Controller" component crazy. I seem to end up with lots of "Missing" items appearing in the "Day Time Override Volumes" and "Night Time Override Volumes", which seems to cause all sorts of problems with rendering the component editors.

Link to comment
Share on other sites

  • Solution
13 hours ago, mroshaw said:

Having these components in Prefabs seems to drive the "HDRP Time of Day Volume Override Controller" component crazy. I seem to end up with lots of "Missing" items appearing in the "Day Time Override Volumes" and "Night Time Override Volumes", which seems to cause all sorts of problems with rendering the component editors.

Okay adding a null check to only process volumes that are there, and will also add a cleanup function to go through the list and clean up any null ref links when a profile is added or removed from the controller

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...