Quantcast
Channel: Questions in topic: "namespace"
Viewing all articles
Browse latest Browse all 398

Referencing / Identifying Namespaces for Use in Scripts

$
0
0
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: 1. https://youtu.be/LgMO7hRQRQs 2. https://www.youtube.com/watch?v=uzpUYBNsdb0 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?

Viewing all articles
Browse latest Browse all 398

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>