Unity/Unity 이슈

Addressable 사용 시 Shader가 깨질 때(분홍색으로 나옴)

lipnus 2022. 2. 14. 15:33
반응형

Problem

Addressable Build를 Use Existing Build로 설정해서 실행하면...

 

Addressable을 통해 Load된 에셋들의 Shader가 끊어져있다. (Editor에서 실행한 상황)

 

Reason

Addresssable의 Shader는 Android용으로 Pack되어서 Editor에서 안열리는 것

모바일 디바이스에 빌드해서 열면 잘됨

 

Solution

Android에서는 잘 보이고,  Editor에서 테스트 시에만 잘 안보이는 것.

여기에 넣으면 된다함

 

 

 

 

Reference

http://cargocollective.com/mingruijiang/Shaders-from-asset-bundles-appear-pink-in-editor

 

Shaders from asset bundles appear pink in editor - Mingrui Jiang, Programmer

I came across this problem when testing asset bundles and organizing shaders. The problem is weird at first, because the shaders obviously works when running on iOS testing device like the iPad. But in the editor, the materials seems to have...

cargocollective.com

 

https://answers.unity.com/questions/1799508/issue-with-custom-shader-not-appearing-on-addressa.html

 

Issue with Custom Shader not appearing on addressable/asset bundle loaded objects in Build - Unity Answers

 

answers.unity.com

 

반응형