유니티에서 중첩 프리팹(nested prefabs) 사용하기중첩 프리팹(nested prefabs)은 프리팹 안에 다른 프리팹을 포함할 수 있는 구조를 의미합니다. https://docs.unity3d.com/Manual/NestedPrefabs.html UI 제작에서 중첩 프리팹 사용 예시(Make UI with Nested Prefabs in Unity)https://youtu.be/4fkTbbxktpc
유니티(Unity) 트랜스폼(Transform) 위치 및 방향 변환 함수 모음TransformPoint(Vector3 localPosition)객체의 로컬 공간 좌표를 월드 공간 좌표로 변환 Vector3 localPos = new Vector3(1, 0, 0); Vector3 worldPos = transform.TransformPoint(localPos); https://docs.unity3d.com/ScriptReference/Transform.TransformPoint.htmlInverseTransformPoint(Vector3 worldPosition)객체의 월드 공간 좌표를 로컬 공간 좌표로 변환 Vector3 worldPos = new Vector3(10, 0, 5); Vector3 lo..
게임 개발자 블로그 및 홈페이지 모음(유니티, 언리얼, 기타) 업데이트중국내대충 살아가는 게임개발자 https://chulin28ho.tistory.com/ 대충 살아가는 게임개발자대충 살아가는 테크니컬 아트 디렉터 : 이글루스에서 이사왔습니다.chulin28ho.tistory.com 오즈라엘 https://ozlael.tistory.com/ 오즈라엘오지현 / Unity Korea Lead Evangelis Facebook : ozlael.oz Twitter : ozlael Youtube : https://www.youtube.com/channel/UCp8hgqwe-_CYn-mjpqy2wIQozlael.tistory.com ㅍㅍㅁㅅ(포프) https://blog.popekim.com/ko/ 포프머신 | ..
유니티(Unity) 보간(interpolation)함수 종류 및 예시Mathf.Lerp 주어진 두 값 사이를 선형적으로 보간(interpolate)하는 데 사용됩니다. t는 0과 1 사이의 값을 가지며 t가 0이면 a를 반환하고 t가 1이면 b를 반환합니다. t가 0과 1 사이에 있으면 a와 b 사이에서 보간한 값을 반환합니다. float a = 0f; float b = 10f; float t = 0.5f; float result = Mathf.Lerp(a, b, t); //result는 5f입니다. https://docs.unity3d.com/ScriptReference/Mathf.Lerp.html Mathf.SmoothStep Mathf.Lerp와 유사하게 주어진 값 사이를 보간하지만 부드러운 단계적..
유니티(Unity)에서 카메라 뷰 오브젝트 확인 함수 및 속성 모음(프러스텀, 렌더러, Bounds, 기타) Renderer.isVisible객체 및 렌더러가 카메라의 뷰 프러스트럼(시야 범위) 안에 있는지 확인합니다. 렌더러가 카메라에 의해 보일 때 true를 반환하고 그렇지 않으면 false를 반환합니다. 게임 오브젝트가 화면에 보일 때만 작업을 실행하고 싶을 때 사용 https://docs.unity3d.com/ScriptReference/Renderer-isVisible.html void Start() { m_Renderer = GetComponent(); } void Update() { if (m_Renderer.isVisible) ..
유니티(Unity) 페인트 에셋 모음(페인팅, 드로잉)Free Draw - Simple Drawing on Sprites/2D Textures https://assetstore.unity.com/packages/tools/painting/free-draw-simple-drawing-on-sprites-2d-textures-113131https://youtu.be/40ylWWrCpkA Paint in 3D https://assetstore.unity.com/packages/tools/painting/paint-in-3d-26286https://youtu.be/X-LhxwIEimw Implement Drawing and Saving in Unity 2018https://gist.github.com/dit..
유니티 실시간 페인팅 동영상 튜토리얼 모음(페인팅, 드로잉)Splatoon - Painting Effect in Unity https://youtu.be/YUWfHX_ZNCw Recreating Splatoon's Ink System | Mix and Jamhttps://youtu.be/FR618z5xEiM Drawing in UNITY in 60 SECONDS https://youtu.be/_ILOVprdq4o How to DRAW inside Unity! (Paint, Design, Strategize, Mod | Unity Tutorial) https://youtu.be/XozHdfHrb1U
유니티(Unity)에서 사용자 인터페이스 UI 기초 사용법 3 - 사이드 메뉴아래 유니티 튜토리얼(Introduction to Unity UI, By Ben MacKinnon)을 참고하였습니다. https://www.kodeco.com/6570-introduction-to-unity-ui-part-11)캔버스에 새로운 버튼 오브젝트를 생성합니다. 2)오브젝트의 Rect Transform에서 앵커 프리셋을 bottom, left로 설정하고 위치 및 크기를 설정합니다. 3)이미지의 소스 이미지(source image)에 스프라이트를 참조합니다. 4)버튼 오브젝트가 캔버스 영역의 좌측 하단에 위치하는것을 확인할수있습니다. 5)버튼 오브젝트의 하위에 panel 오브젝트를 생성합니다(Pnl_Mask)panel 오..
유니티(Unity)에서 사용자 인터페이스 UI 기초 사용법 2 - 타이틀 이미지, 앵커 프리셋, 스프라이트 9-slicing아래 유니티 튜토리얼(Introduction to Unity UI, By Ben MacKinnon)을 참고하였습니다. https://www.kodeco.com/6570-introduction-to-unity-ui-part-11)캔버스에 새로운 이미지 오브젝트를 생성하고 타이틀로 사용할 이미지 스프라이트를 참조합니다. 2)Rect Transform에서 앵커 프리셋(anchor presets)이 기본값 middle, center로 설정되어있는것을 확인할수있습니다. posX, posY에 값0을 입력하여 위치를 초기화합니다. 3)앵커 프리셋을 top, center로 변경합니다. posY에서..
유니티(Unity)에서 사용자 인터페이스 UI 기초 사용법1 - 배경 이미지, 캔버스 설정, Game 뷰 해상도아래 유니티 튜토리얼(Introduction to Unity UI, By Ben MacKinnon)을 참고하였습니다.https://www.kodeco.com/6570-introduction-to-unity-ui-part-1 Introduction to Unity UI – Part 1In this first part of a three-part tutorial series, you’ll get acquainted with the Unity UI, enabling you to add custom user interfaces to your games.www.kodeco.com 1)UI의 Image를 ..
유니티 에디터 키보드 단축키 설정(shortcuts) 1)상단 edit 메뉴의 shortcuts로 이동합니다. 2)카테고리에서 명령(command)을 선택하고 키보드 단축키를 설정합니다.
유니티의 새로운 입력 시스템 기술문서 모음(new input system) 새로운 입력 시스템 소개 https://blog.unity.com/kr/technology/introducing-the-new-input-system Input System(Quick start guide) https://docs.unity3d.com/Packages/com.unity.inputsystem@1.0/manual/QuickStartGuide.html PlayerInput 클래스 https://docs.unity3d.com/Packages/com.unity.inputsystem@1.1/api/UnityEngine.InputSystem.PlayerInput.html#UnityEngine_InputSystem_PlayerI..