unity 43

[Unity] animator

애니메이션의 속성을 내가 원하는 타이밍에 끄고 싶었는데 layer을 사용하면 편하더라 weight(가중치)를 조절하면 됨 참고 https://docs.unity3d.com/ScriptReference/Animator.SetLayerWeight.html Unity - Scripting API: Animator.SetLayerWeight Success! Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable. C..

Unity/잡학 사전 2022.10.21

[Unity] Particle System

1. 모든 간에 맨 아래 Renderer 부분이 제일 중요하다 (그 다음은 역시 기본 속성) 2. 만약에 회전에 따라 파티클이 이상해진다면 Renderer의 Render Alignment 이 view인지 local 인지 보기 3. 복사해서 크기를 줄였는데 카메라에서 전혀 줄어들지 않았다면 기본 Scaling Mode을 확인해라 4. material의 Renderer Queue로 order in layer 처럼 조절을 할 수 있다. 이걸로 인해 땅에 파묻혀 보이는 파티클도 안묻히게 할 수 있다. 개발하면서 파티클은 디자인의 영역이라고 생각됐지만 꽤나 큰 부분을 차지하는 느낌.. 연출 수정할때 제일 골치아프다... 참고 https://docs.unity3d.com/ScriptReference/Particle..

Unity/잡학 사전 2022.10.20

게임 개발 스터디 11 : UI Toolkit - Object Field

1. Object Field에 타입이 지정되지 않음 cs에서 추가할수도 있지만 UI Builder Inspector 창에서 Type를 지정해주면 된다.일단 GameObject가 들어갈 것이기 때문에 UnityEngine.GameObject, UnityEngine.CoreModule 를 추가해주었다. 성공!참고https://answers.unity.com/questions/1625662/in-objectfield-created-in-uxml-uielements.html No type in ObjectField created in uxml (UIElements) - Unity Answers answers.unity.com

게임 개발 스터디 10 : UI Toolkit 구성 확인

웹개발을 unity 에서 하는 느낌이다 https://nforbidden-fruit.tistory.com/44 UIElement 개요와 사용법Unity:UIElements の使い方(Unity2019新機能) はじめに 今回はUnity 2019の新機能、UIElements の使い方を解説してみようと思います。ぜひ、… www.fast-system.jp UIElements를 언급하기 전에 먼저 언급할 용..nforbidden-fruit.tistory.comhttps://docs.unity3d.com/ScriptReference/UIElements.VisualElement.html Unity - Scripting API: VisualElementVisualElement contains several features th..

[Unity] 파티클 시스템 이미지 뒤로 보내는 방법(Particle system behind the image)

1. Image로 되어있는 것을 Sprite Renderer로 변경(+ 부모 offset 더미 오브젝트) 나같은 경우는 이미 image로 애니메이션을 만들어져있었기 때문에 Sprite Renderer 로 변경하면 크기가 작아진 상태로 애니메이션이 재생됐다. 그래서 offset 더미 를 만들고 하위로 Sprite Renderer로 변경한 texture를 넣어주었다. 애니메이션의 기준을 바꿔야해서 조금 번거로움이 생겼지만 그래도 애니메이션을 아예 다시 만드는 것보단 나은 방법이었다. 그 후 Additional Settings - Order in Layer을 알맞게 변경해주면 된다.

Unity/잡학 사전 2022.09.26

[Unity] Texture 경고창, Only textures with width/height being multiple of 4 can be compressed to Crunch format

Texture의 최대 사이즈를 줄였는데 아래와 같은 오류가 발생했다. 해석 : 폭/높이가 4의 배수인 텍스처만 크런치 형식으로 압축할 수 있습니다. 알고보니 텍스쳐 사이즈가 4의 배수가 아니면 압축이 제대로 진행되지 않는다는 문구였다. 해당 텍스쳐의 속성을 확인해보니 4의 배수가 아니어서 모두 바꿔주었다. (그림판으로 했다 ㅋㅋ) 바꾸는데 사용한 사이트 - https://www.resizepixel.com/ko ResizePixel - 온라인 이미지 편집기 온라인 무료 이미지 자르기, 크기 조절, 좌우반전, 회전, 변환, 압축 편집기 www.resizepixel.com 참고 https://velog.io/@minjujuu/Unity-%ED%85%8D%EC%8A%A4%EC%B2%98-%EC%95%95%EC..

Unity/문제 해결 2022.09.16