Unity 85

게임 개발 스터디 14 : 추가사항 정리

1. 캐릭터 정보캐릭터 별PID이름 -> object를 클릭하면 자동 바인딩이미지 -> Texture2D레벨 -> int등급 -> dropdown string타입(공격, 방어, 민첩 등) -> dropdown string사운드설명(Description)기존에 있던 값(HP, ATK, ATKRange, Weight, exp) -> float2. 바인딩 예제 참고https://docs.unity3d.com/Manual/UIE-binding-examples.html 3. 자동 바인딩CharacterData.cs를 CharacterBuilder.cs에서 자동 바인딩https://ansohxxn.github.io/unity%20lesson%202/ch7-4/ 4. 수정 5. type 관련 코드 간결화key, va..

[Unity/UI] 버튼 위로 이미지 배치 시 영향 받지 않도록 하는 방법 (Overlapping Buttons)

이런식으로 겹쳐져 있고 네모Button(■)을 눌러야하는 상황인데 큰 원(O) Image가 위에 있어서 input이 정상적으로 되지 않았음큰 원(O) Image 의 Raycast Target을 비활성화 시키면 button input이 정상적으로 눌러질 수 있었음button도 화면에 raycast를 쏴서 click을 받는 것이기 때문에 raycast의 영향을 받지 않도록 하면 되는 것이었음참고https://stackoverflow.com/questions/36259386/unity-button-click-doesnt-work-when-overlap-a-have-collider2d-object-in-another Unity Button Click doesn't work When overlap a have c..

Unity/문제 해결 2022.11.18

게임 개발 스터디 13 : UQuery

지난번에 정확한 개념도 모르고 사용한 것 같아서 정리더보기Q는 UQuery로 요소 검색을 위해 사용되는 것"UQuery는 JQuery 또는 Linq를 기반으로 하며 동적 메모리 할당을 최대한 제한하도록 설계되었습니다. 이를 통해 모일 플랫폼에서 최적의 성능을 얻을 수 있습니다." 라고 문서에서 설명한다.참고https://docs.unity3d.com/Manual/UIE-UQuery.html Unity - Manual: UQueryRelative and absolute positioning C# example Best practices for managing elements UQuery You can use UQuery to retrieve elements from a visual treeAn object..

[Unity/UI] 버튼 클릭이 겹칠 때 해결 방법

(GameObject).transform.SetAsLastSibling();하이어라키에서 최하위로 보낸다. (화면에서 최상단으로 올라오게 됨)참고https://docs.unity3d.com/ScriptReference/Transform.SetAsLastSibling.html Unity - Scripting API: Transform.SetAsLastSiblingSuccess! 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 wher..

Unity/문제 해결 2022.11.02

[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