Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

'VolumeProfile' could not be found (HD RP 5.x)

Discussion in 'Scripting' started by MAJID_3D, Jun 17, 2019.

  1. MAJID_3D

    MAJID_3D

    Joined:
    Jul 4, 2018
    Posts:
    12
    Hi
    I want to upgrade my code from HD RP 4.x to HD RP 5.x
    This code works well on 4.x:
    Code (CSharp):
    1.     public VolumeProfile volumeProfile;
    2.  
    I get error in 5.x:
    Code (CSharp):
    1. Assets\LightingBox2\Scripts\LB_LightingProfile.cs(14,9): error CS0246: The type or namespace name 'VolumeProfile' could not be found (are you missing a using directive or an assembly reference?)
    2.  
    How can i access to the volume component in HD RP 5.x?
     
  2. Jujejeju

    Jujejeju

    Joined:
    Aug 1, 2018
    Posts:
    1
    Hi, have the same problem... Did you manage to find a solution?
     
  3. Crayden

    Crayden

    Joined:
    Dec 20, 2019
    Posts:
    6
    Same problem..
     
  4. termway

    termway

    Joined:
    Jul 5, 2012
    Posts:
    77
    I'm not sure if it will solve your problem but if you are using assembly definition you need to add the reference Unity.RenderPipelines.Core.Runtime to your assembly definition "Assembly Definition References". It was the problem for me.
    For similar problem you can use quicksearch (the Project search bar does not look for files in the packages folder) to find the script which is not found, then search for the name of the assembly definition in the same or parent folder.
     
    Last edited: Apr 12, 2022