개발/Unity 19

Unity UI Touch시 객체 터치는 막기

if (!EventSystem.current.IsPointerOverGameObject()) { isRotating = true; recentMousePosition = Input.mousePosition; } 위와 같이 객체 터치시 발생할때 조건을 추가해주면 된다. https://sangh518.github.io/record/block-event-when-ui-click/ [유니티] UI 클릭 시, 다른 클릭 이벤트 일어나지 않게 하기 유니티에서 클릭(터치)이벤트를 처리할 때, UI를 클릭할 때는 클릭 이벤트가 처리되지 않도록 해야할 때가 있다. 예를 들어 터치한 곳으로 캐릭터가 이동하게 해야하는 경우, 화면 상에 있는 버 sangh518.github.io

개발/Unity 2022.04.05

Unity MVC/MVP

https://beomy.tistory.com/43 [디자인패턴] MVC, MVP, MVVM 비교 웹 개발자로 일을 하면서 가장 먼저 접한 디자인패턴이 바로 MVC 패턴이었습니다. 그만큼 유명하고 많이 쓰이는 디자인패턴인 MVC 패턴과 MVC 패턴에서 파생되어져 나온 MVP 패턴과 MVVM 패턴을 이야 beomy.tistory.com https://discourse.world/h/2019/12/23/MVP-in-Unity-or-how-to-simplify-life MVP in Unity or how to simplify life (Fixed) First, let's see what MVP (Model View Presenter) is. Why is it needed? The simplest answer ..

개발/Unity 2022.03.11

이 unity 프로젝트는 visual studio tools for unity용으로 생성되지 않았습니다

이 unity 프로젝트는 visual studio tools for unity용으로 생성되지 않았습니다 이런 메시지가 나올 때 해결법. https://docs.microsoft.com/ko-kr/visualstudio/gamedev/unity/troubleshooting/troubleshooting-and-known-issues-visual-studio-tools-for-unity 문제 해결 및 알려진 문제(VS Tools for Unity) Visual Studio Tools for Unity에서 문제 해결을 확인합니다. 알려진 문제에 대한 설명을 확인하고 해당 문제의 해결 방법을 알아봅니다. docs.microsoft.com 일단 위 링크를 따라하면 된다. 일반적으로는 Visual Studio Ins..

개발/Unity 2022.03.01

유니티 몇가지 팁

- 스크롤 뷰 기본 만들기 https://kumgo1d.tistory.com/14 [Unity] ScrollView를 사용하여 List 만들기 안녕하세요 골드입니다. 오늘은 Unity UGUI ScrollView를 사용하여 List를 구현해보려고 합니다. 어디서든 ScrollView는 그 쓰임 빈도가 상당히 높은 편입니다. Unity로도 다양한 어플리케이션 제작이 가능 kumgo1d.tistory.com - 스크롤 뷰에 버튼 클릭 안될 때 사용. (프리팹에 클릭 이벤트 설정하기) https://foxtrotin.tistory.com/510 Button Prefab에 Onclick() 추가하기!!!! 드디어!!!! 해내서!!!! 동작해서!!! 글로 기록합니다 원하는 것: Prefab로 만든 Button을 ..

개발/Unity 2022.02.26

Unity & PUN2 연결하기 기초 (포톤 클라우드 - 리얼타임)

1. 애셋스토어에서 PUN2->Unity 프로젝트로 가져오기 https://assetstore.unity.com/packages/tools/network/pun-2-free-119922 PUN 2 - FREE | 네트워크 | Unity Asset Store Get the PUN 2 - FREE package from Exit Games and speed up your game development process. Find this & other 네트워크 options on the Unity Asset Store. assetstore.unity.com 포톤 웹사이트 가입하고, '새 어플리케이션 만들기' 선택 https://dashboard.photonengine.com/ko-KR/ 글로벌 크로스 플랫폼 실..

개발/Unity 2022.02.26

유니티 3D 간보기 - 골드메탈 3D강좌:코루틴으로 근접공격 구현, Trail Renderer 사용.

근접 공격 강좌 https://youtu.be/Zfoyagdz1y0 Weapon.cs 변수 생성. public enum Type { Melee, Range }; public Type type; public int damage; public float rate; public BoxCollider meleeArea; public TrailRenderer trailEffect; Player가 장착한 무기에 스크립트 추가, 변수 초기값 넣기 - Damage : 25, Rate : 0.4, MeleeArea : 무기의 충돌 영역(BoxCollider), Trail Effect : 무기에 추가할 Trail Effect - Trail Effect: 잔상 효과, 해머를 휘두를 때 남는 잔상을 만든다. > 기본 값들 설..

개발/Unity 2022.02.06
반응형