스파인에서 여러 스킨을 추가하여 하나의 스킨으로 합친 후 설정해주는 작업을 했는데
유니티 에디터 상에서는 큰 이상 없이 이것이 잘 출력되었습니다.
하지만, 앱파일을 빌드하여 모바일에서 구동해보니 모든 스킨들이
네모로 출력되었습니다. Attachment는 별 다른 이상 없이 보이나
스킨들만 이상하게 네모로 변했습니다.
메모리 문제일까요 아니면 쉐이더 문제일까요ㅠ
어디서 찾아야 할지 몰라 글남깁니다..
유니티]스파인에서 설정한 스킨이 모바일에서 보이지 않습니다
- Изменено
English spine-unity 문서 페이지에는 스킨 재 패키지 실패시 몇 가지 일반적인 문제가 나열되어 있습니다.
spine-unity Runtime Documentation: Combining Skins
이 페이지가 아직 한국어로 번역되지 않았다 니 죄송합니다!
중요 참고 : 재 포장에 실패하거나 예기치 않은 결과가 발생하는 경우 다음 원인 중 하나 일 가능성이 높습니다.
- 읽기 / 쓰기 비활성화 됨 : 플랫폼 기능에 따라 재 패키징 된 텍스처에 결합 될 소스 텍스처에서 '읽기 / 쓰기 활성화'매개 변수를 설정해야 할 수 있습니다.
- 압축이 활성화 됨 : 플랫폼에 따라 소스 텍스처에 '일반 품질'대신 '압축'이 '없음'으로 설정된 텍스처 가져 오기 설정이 있는지 확인합니다.
- 퀄리티 티어는 1/2/4 해상도 텍스처를 사용합니다 : 1/2 또는 1/4 해상도 rexture가 사용될 때 잘못된 영역을 복사하는 알려진 Unity 버그가 있습니다. 프로젝트 설정의 모든 품질 계층이 전체 해상도 텍스처를 사용하고 있는지 확인합니다.
- 소스 텍스처는 2의 제곱 텍스처는 아니지만 Unity는 가장 가까운 제곱으로 확대합니다. a) [Pack Settings] (Texture packing - Spine User Guide: Settings)를 사용하여 Spine에서 내보내기 )
2의 거듭 제곱 '을 활성화하거나 b) Unity의 아틀라스 텍스처 가져 오기 설정에
Non-Power of Two가
None`으로 설정되어 있는지 확인합니다.
The English spine-unity documentation page lists some common problems when repacking Skins fails:
spine-unity Runtime Documentation: Combining Skins
We are sorry that this page is not yet translated to Korean!
Important Note: If repacking fails or creates unexpected results, it is most likely due to any of the following causes:
- Read/Write is disabled: Depending on platform capabilities, you may need to set the
Read/Write Enabled
parameter at source textures that shall be combined to a repacked texture.- Compression is enabled: Depending on the platform, ensure that the source texture has Texture import setting
Compression
set toNone
instead ofNormal Quality
.- Quality tier uses half/quarter resolution textures: There is a known Unity bug that copies incorrect regions when half or quarter resolution rextures are used. Ensure that all Quality tiers in Project Settings are using full resolution textures.
- The source texture is not a power-of-two texture but Unity enlarges it to the closest power: Either a) export from Spine with Pack Settings
Power of two
enabled, or b) make sure the atlas Texture import settings in Unity hasNon-Power of Two
set toNone
.