简体   繁体   中英

The type or namespace name 'PostProcessing' does not exist in the namespace 'UnityEngine.Rendering' On unity package

I would like to use the 'PostProcessing' package on my package script. if i import it and using

using UnityEngine.Rendering.PostProcessing;

that only works if the script is on the Assets/ folder (but my script is on the Package/ folder and i got this error: )

The type or namespace name 'PostProcessing' does not exist in the namespace 'UnityEngine.Rendering' 

Edit:

The problem was i did'nt add the post process dependance in my assembly definition file

try implementing > namespace UnityEngine.Rendering.PostProcessing , if not try putting the script into the post processing folder, that should work

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM