Jump to content

VolumetricClouds.CloudPresets 'value' Definition Errors in Unity 2022.2.19


omochi
Go to solution Solved by Mad Stuntman,

Recommended Posts


 I am writing to report an issue I encountered while working with your HDRP Time Of Day 1.2.0 asset in Unity 2022.2.19. 
I am experiencing repeated errors related to the 'VolumetricClouds.CloudPresets' class, stating that it does not contain a definition for 'value'.

The exact error messages I am receiving are as follows:

Assets\Procedural Worlds\HDRP Time Of Day\Scripts\Core\HDRPTimeOfDayProfile.cs(437,88): error CS1061: 'VolumetricClouds.CloudPresets' does not contain a definition for 'value' and no accessible extension method 'value' accepting a first argument of type 'VolumetricClouds.CloudPresets' could be found (are you missing a using directive or an assembly reference?)

Assets\Procedural Worlds\HDRP Time Of Day\Scripts\Core\HDRPTimeOfDayWeatherProfile.cs(100,86): error CS1061: 'VolumetricClouds.CloudPresets' does not contain a definition for 'value' and no accessible extension method 'value' accepting a first argument of type 'VolumetricClouds.CloudPresets' could be found (are you missing a using directive or an assembly reference?)

Assets\Procedural Worlds\HDRP Time Of Day\Scripts\Core\HDRPTimeOfDayProfile.cs(2063,84): error CS1061: 'VolumetricClouds.CloudPresets' does not contain a definition for 'value' and no accessible extension method 'value' accepting a first argument of type 'VolumetricClouds.CloudPresets' could be found (are you missing a using directive or an assembly reference?)

  • Thanks 2
Link to comment
Share on other sites

  • Solution

Just remove .value like in the example below:

// Before
components.m_timeOfDayVolumeComponenets.m_volumetricClouds.cloudPrese.value = m_cloudPresets;
// After
components.m_timeOfDayVolumeComponenets.m_volumetricClouds.cloudPreset = m_cloudPresets;
  • Like 1
  • Thanks 2
Link to comment
Share on other sites

PW you may want to update this, Dr Meat Ball was having this issue and I found it here, I figured it had to be by the error a bug with that value, I would give that a quick update, so other users aren't stuck....

Link to comment
Share on other sites

On 5/20/2023 at 1:03 PM, Mad Stuntman said:

Just remove .value like in the example below:

// Before
components.m_timeOfDayVolumeComponenets.m_volumetricClouds.cloudPrese.value = m_cloudPresets;
// After
components.m_timeOfDayVolumeComponenets.m_volumetricClouds.cloudPreset = m_cloudPresets;

Thanks, this helped other users out. (Dr MeatBall)

Link to comment
Share on other sites

On 5/21/2023 at 2:03 AM, Mad Stuntman said:

Just remove .value like in the example below:

// Before
components.m_timeOfDayVolumeComponenets.m_volumetricClouds.cloudPrese.value = m_cloudPresets;
// After
components.m_timeOfDayVolumeComponenets.m_volumetricClouds.cloudPreset = m_cloudPresets;

You save my project.
Thank you.

Link to comment
Share on other sites

  • 1 month later...

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