2022/11 19

[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