0
\$\begingroup\$

I added a new assembly file to a folder containing my Unity scripts. After setting the Assembly Definition References all Classes of other assemblies are found except Volume.

The type or namespace name 'Volume' could not be found (are you missing a using directive or an assembly reference?) 

What assembly do I have to link to be able to use Volume?

\$\endgroup\$

2 Answers 2

1
\$\begingroup\$

The Volume class is part of the UnityEngine.PostProcessing namespace, so you will need to add a reference to the UnityEngine.PostProcessing assembly in order to use it.

\$\endgroup\$
1
\$\begingroup\$

Adding these references to your AssemblyDefinition.

  • Unity.RenderPipelines.Core.Runtime
  • Unity.RenderPipelines.Universal.Runtime
\$\endgroup\$

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.