Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by thestrandedmoose · Apr 02, 2018 at 02:36 AM · errorshaderbuildfailure

Build failing- Shader Error in Hidden/PostFX/

Hey all. Today I tried to publish a build for the first time. Everything works fine when I preview the game, but whenever I try to build I get a bunch of errors like "Shader Error in 'Hidden/PostFX/blahblah...". Does anyone know how to fix this?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by Undermountain · Apr 07, 2018 at 02:22 PM

Same. Can't open source for any of the shaders in the Post Processing Stack. To fix this, leave the PostProcessing directory in the root of the Assets folder. I know, this sucks.

If you don't want to do that, click on each error in the console and edit the shader to remove the path like this:

change Shader "Hidden/Post FX/Grain Generator" to Shader "Grain Generator"

Also, you have to rename Uber.shader to Uber Shader.shader.

Additionally, you have to edit PostProcessingBehaviour.cs and edit the following two references to remove the old path:

line 199: var uberMaterial = m_MaterialFactory.Get("Hidden/Post FX/Uber Shader"); line 248: ? m_MaterialFactory.Get("Hidden/Post FX/FXAA")

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image thestrandedmoose · Apr 07, 2018 at 03:50 PM 0
Share

Thanks man. I ended up moving all my asset packages back to the Assets folder and that seemed to work (Post Processing was probably in there as well). I guess some file paths get broken when you move stuff around.. I'll see if I can find the Post Processing directory and just move that ins$$anonymous$$d so I don't have to keep ALL the files there. Thanks!

avatar image feracorp · Sep 12, 2021 at 02:24 PM 0
Share

Доброго дня, для тех кто ничего не понимает по анг., и ничего не понял, разбирался пару дней. Ищем папку PostProcessing переносим в папку Assets. Ищем поиском все шейдеры, они могут быть во внутренних папках ресурсов и переносим в папку Shaders в корневой папке Assets. Затем в VisualStudio находим все через найти все в файлах "Hidden/FX/" и переименовываем в автоматическом режиме "Hidden/Post FX/". Сохраняем все файлы через сохранить все в VS. Переоткрываем проект юнити, все готово. Перепробовал все возможные советы, сработал только этот, ошибка может вызвать проблемы с отображением интерфейса.

avatar image
0

Answer by OnlyHardProjects · Nov 16, 2018 at 06:18 PM

Clicar em>Project>Clicar no path/caminho raiz"assets">Clicar em PostProcessing>Show in Explorer>

já no explorer apagar a pasta"PostProcessing" e todos os .meta files>Voltar ao Unity3D>esperar para o Unity actualizar as bibliotecas/refresh>

dentro de Unity>ir na aba"Asset Store"> Procurar pelo asset"Post Processing Stack""https://assetstore.unity.com/packages/essentials/post-processing-stack-83912">

isso vai importar este mesmo asset novamente com o unity3d(Mas actualizado) v2.0> devera ter resolvido todo o problema!> Abraços! <3

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

152 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Building unity stuck on Compiling Shader Variants 0 Answers

Toon/Lit Outline shaders broken in build by adding Screen Space - Camera Canvas 0 Answers

Distribute terrain in zones 3 Answers

CommandInvokationFailure: Failed to re-package resources 1 Answer

Unable to determine the tools version of the Android SDK 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges