Having a devil of a time finding the answer to this, all the answers seem to go to “how to add a namespace to the top of your script,” when I’m really looking for “How do I identify WHICH namespace I NEED to add to the top of my script?”
Here’s my Example (Unity 2019.3 - Universal Render Pipeline):
I have a volume which changes some visual effects - See two helpful, general information tutorials:
- POST PROCESSING in Universal RP with Unity 2020! (Tutorial) - YouTube
- HDRP Post Processing Volumes in Unity - YouTube
What I’d like to do is create only one volume for these effects (sort of moving-through-warps-in-space-time-effects) and then just use a script to adjust the Weight attribute of the Volume. I would set it at 1 when I need it to be visible, and 0 when I don’t, and maybe I can Lerp between those values.
So I know that this weight attribute should be defined in a C# script, and that I could put something like using UnityEngine.Rendering.PostProcess.Volume up at the top of my script, then set up a variable like:
private Volume theVolumeIWantToAdjust;
Then I could do:
theVolumeIWantToAdjust.Weight = 0.5;
Shouldn’t I be able to go to Unity Docs and see that UnityEngine has a class within it named Rendering, which has a class within it named PostProcess, which has something within it named Volume, which does all this list of things, so you reference each of those things like…whatever?
Am I just looking in the wrong places?