강의

멘토링

로드맵

인프런 커뮤니티 질문&답변

꾸룽꾸룽님의 프로필 이미지
꾸룽꾸룽

작성한 질문수

[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part3: 유니티 엔진

환경 세팅

강사님.. 도와주세요 ㅠㅠ

작성

·

1.7K

0

구매한 에셋의 샘플씬을 Town으로 만들었더니

Could not create a custom UI for the shader 'TriForge/TreeLod'. The shader has the following: 'CustomEditor = ASEMaterialInspector'. Does the custom editor specified include its namespace? And does the class either derive from ShaderGUI or MaterialEditor?

UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

이런 오류가 계속 뜹니다 ㅠ

구글에도 검색해보고 유니티 까페도 검색해봤는데 도무지 뭘 어떻게 해야될지 모르겠습니다 ㅠ 

답변 2

1

Rookiss님의 프로필 이미지
Rookiss
지식공유자

https://forum.unity.com/threads/customer-shadergui-warning-only-on-package-import.310841/

  1. #if UNITY_EDITOR
  2.   using UnityEditor;
  3. #endif
  4.  
  5. #if UNITY_EDITOR
  6.     public class ImperialFurShaderGUI : ShaderGUI
  7.     {
  8.     // my shader ui code
  9.     }
  10. #endif

커스텀 쉐이더 스크립트 쪽의 충돌이 있는 것 같은데 위와 같이
코드를 추가해도 수정이 안 되면
프로젝트 압축후 rookiss@naver.com로 보내주시면 내일쯤 살펴보겠습니다.

0

꾸룽꾸룽님의 프로필 이미지
꾸룽꾸룽
질문자

알려주신 방법으로는 제가 잘못했던건지.. 안되기에

이것저것 해보다가

CustomEditor "ASEMaterialInspector"

이것을  지우니 오류는 더이상 나오지 않고있습니다!

지워도 괜찮은지 모르겠지만 그래도 오류는 사라졌습니다!! 늦은시간에 답변 감사합니다 편안한밤 보내세요!

꾸룽꾸룽님의 프로필 이미지
꾸룽꾸룽

작성한 질문수

질문하기