Unity 12

[Unity] RemoteProviderException: TextDataProvider : unable to load “StreamingAssets /aa/settings.json” 에러 해결

Azure Web app에 Webgl 빌드를 올리려는데StreamingAssets 폴더에서 settings.json 파일을 못 찾는다고 404 에러남어드레서블을 사용하면 자동으로 StreamingAssets폴더 내부에 어드레서블 설정이 적혀있는 settings.json 파일이 생기는데이거를 못 갖고 온다고 자꾸 에러가 났다 해결 방법 :  Webgl 빌드하면 이런식으로 폴더가 생기는데, Build 폴더 내부에 가보면이런 파일들이 있음 여기서 loader.js를 열어보면 먼가 엄청 긴 파일이 나오는데 중간에 보면streamingAssetsUrl 이라는 부분이 있다 기본값은 "m.streamingAssetsUrl,document.URL"인데 나는 azure에 StreamingAssets 폴더를 올리고그 폴더..

Unity 2024.11.28

[Unity] WebGL 'Unable to parse Build" / Multithread error

Brotli로 압축 후 빌드하면 https://stackoverflow.com/questions/75872920/how-to-fix-unable-to-parse-build-error-in-webgl-build How to fix 'Unable to parse Build" error in WebGL build?I want to host my Unity WebGL in was s3 bucket. When I upload my files to an s3 bucket and open index.html to view the project, I get this error.stackoverflow.com Unable to parse build~~이런 에러가 뜨는데  설정에서 enable decompression f..

Unity 2024.11.07

[Unity] Sentis Hand Detection (핸드 트래킹)

https://github.com/Unity-Technologies/sentis-samples/tree/main/BlazeDetectionSample/Hand sentis-samples/BlazeDetectionSample/Hand at main · Unity-Technologies/sentis-samplesSentis samples internal development repository. Contains example and template projects for Sentis package use. - Unity-Technologies/sentis-samplesgithub.com 유니티 센티스 공식 예제에서 해당 예제를 받아 실행해보았다 HandDetection.cs 에서  m_HandL..

Unity 2024.10.24

[Unity] Sentis Human Pose Estimation (포즈 트래킹)

https://github.com/Unity-Technologies/sentis-samples/tree/main/BlazeDetectionSample/Pose sentis-samples/BlazeDetectionSample/Pose at main · Unity-Technologies/sentis-samplesSentis samples internal development repository. Contains example and template projects for Sentis package use. - Unity-Technologies/sentis-samplesgithub.com 유니티 센티스 예제로 올라온 Pose Detection 의 Landmark 좌표를 이용해 휴머노이드 캐릭터에 붙여봤다 먼저..

Unity 2024.10.15

[Unity] Android GameActivity Entry point

!! 둘 다 체크하는 경우는 테스트할 때만 ! 하나만 체크해야한다 !! Activity(기존 방법)- 원래 Unity가 지원했던 유일한 애플리케이션 진입점, 안정적임- 프로젝트에서 Java 스레드에서 실행해야 하는 플러그인을 사용하는 경우 사용- 이전에 Activity 진입점을 사용한 오래된 프로젝트를 업그레이드하는 경우 사용 GameActivity(New)- Java Thread가 아닌 Native Thread에서 실행됨- 앞으로의 Unity 버전에서는 GameActivity가 기본 진입점이 될 예정- GameActivity로 전환하면 브릿지 코드(Unity와 androidx.games:games-activity 패키지 사이)를 조정하거나 변경할 수 있음- 이전 Activity 기반 애플리케이션에서는 ..

Unity 2024.09.23

[Unity] JoyStick 움직임이 버벅거리는 현상

전에 구글링을 열심히 했던 기억이 있어서 남김스크립트에ETouch.EnhancedTouchSupport.Enable();을 해주고조이스틱 필요 없을 땐ETouch.EnhancedTouchSupport.Disable();을 해주면 더이상 버벅거리지 않고 부드럽게 움직인다!하지만 이 코드를 넣으면 모바일에서 버벅거리는 현상이 일어남 pc, 모바일에서 다 사용하려면 전처리기 해줘야할듯나같은 경우엔 모바일에서 테스트 전에 에디터에서 조이스틱으로 테스트하는데 버벅거려서 헤맸는데,사실 pc에서는 키보드로 움직이니까 굳이 고칠 필요는 없었던 부분,,,하지만 pc에서 조이스틱 UI를 사용하고 싶다면 저 코드를 넣어주면 해결된다.

Unity 2024.07.15

[Unity] Sprite Atlas를 Addressable로 불러오기

지금 프로젝트는 리소스를 대부분 어드레서블을 통해 불러오고 있다.원래 Atlas 없이 하다가 최근에 시간 여유가 생겨서 어드레서블로 묶게 되었는데,설정이 잘못되었는지 번들 용량이 오히려 는다거나 메모리 로드가 중복으로 된다거나 하는 이슈가 생겼다. 이러저러한 시도를 하고 나서 얻은 결론! 1.   번들 모드는 Pack Together로 해야한다.그리고 나는 한 번들 내에 원본이미지 폴더, Atlas 폴더를 같이 넣었다. 밑의 이미지 참고(!!다른 번들에 넣으면 각자 패킹돼서 용량이 두배가 된다!!) 2. https://github.com/pschraut/UnityAddressablesBuildLayoutExplorer GitHub - pschraut/UnityAddressablesBuildLayoutEx..

Unity 2024.07.08

[Unity] Android Script Debugging

태블릿에 연결하고 빌드된 앱을 디버깅하는 방법일단 컴퓨터를 태블릿과 같은 와이파이로 연결해야함원래 랜선으로 연결되어 있었다면 와이파이로 바꾸고, *컴퓨터를 재부팅해야한다!*그러고나서 이렇게 체크해주고 빌드하면 앱을 처음 킬 때 You can attach a managed debugger now if you want. Debugger is using port:12345까만화면에 이런 문자가 뜸나는 visual studio 2022를 사용 중인데, Debug -> Attach Unity Debugger 을 누르면이런 창이 뜬다 여기서 Input IP를 누르고끝에 태블릿 첫 화면에서 봤던 포트 번호를 입력하면 된다(킬 때마다 변경되므로 그때그때 바꿔주면된다)IP는 안드로이드 기기->개발자 옵션->무선 디버깅을..

Unity 2024.07.05

[Unity] Android GoogleSignin 빌드 실패

https://youtu.be/Ss0QCEp6JyY?si=wk4tMgOwJTKTqBwd 이 영상 보고 그대로 따라했다 https://github.com/googlesamples/google-signin-unity/releases Releases · googlesamples/google-signin-unityGoogle Sign-In API plugin for Unity game engine. Works with Android and iOS. - googlesamples/google-signin-unitygithub.com사용한 패키지는 이거랑 파이어베이스 유니티 SDK 정말 온갖 오류를 다 봐서.. 1: Task failed with an exception. ----------- * What went w..

Unity 2024.07.05