Engine/Unity

    Unity 6 beta

    Unity 6 beta

    유니티에서 다시 숫자 넘버링으로 유니티 6 베타를 공개하였다. 공개한지는 꽤 된 것 같은데 이렇게 따로 페이지를 만든 것은 처음 보았다. https://unity.com/releases/editor/beta/6000.0.0b11 6000.0.0b11 unity.com 베타이지만 어떤지 궁금해서 설치 후, 새로운 프로젝트를 만들어 보았다. 유니티 에디터는 이전 버전과 다를 게 없어 보이는데 자세히 보면 조금씩 다르다. 새로운 프로젝트 주제는 Compact MORPG 이다. https://github.com/ddayin/Unity-Compact-MORPG GitHub - ddayin/Unity-Compact-MORPG Contribute to ddayin/Unity-Compact-MORPG developme..

    [ChatGPT4] 유니티에서 Cascade Shadow atlas 란?

    ChatGPT4 에게 물어보았다. 먼저 cascade의 사전적 의미 : 폭포 HDRP에 해당하는 것이 아니라 URP에 해당하는 개념이다. In Unity’s Universal Render Pipeline (URP), shadows play a crucial role in adding depth and realism to a scene. Let’s delve into the specifics of shadow atlases and cascade shadows: Shadow Atlases: URP uses shadow atlases to manage real-time shadows. There are two types of shadow atlases: Common shadow map atlas: Used f..

    유니티에서 AABB (Axis-Aligned Bounding Box) ?

    ChatGPT4 에게 물어보았다. Copilot An axis-aligned bounding box (AABB) is a geometric shape commonly used in computer graphics and physics simulations. Here’s what you need to know: Definition: An AABB is a box aligned with the coordinate axes (X, Y, and Z) and fully enclosing some object. Because the box is never rotated with respect to the axes, it can be defined by just its center and extents or alte..

    책 [유니티로 배우는 게임 수학] 중

    수학은 이러한 게임엔진들의 기초가 되는 학문으로, 수학을 잘 알면 깊이 있고 최적화된 게임을 만들 수 있습니다. 물론, 게임 구동에 필요한 모든 기본 기능은 게임엔진에 구현되어 있습니다. 하지만 해당 기능들의 작동 원리를 이해해야 더욱 심도 있게 다룰 수 있겠지요. 또한, 엔진이 제공하지 않는 기능을 구현하려면 수학이 필요합니다. 즉, 게임 개발자라면 수학을 습득해야 비로소 게임 개발의 프로 레이서가 될 수 있습니다. 이 책은 이론에만 치우치지 않고 유니티에서 구동되는 사례를 보여줌으로써 이해를 돕습니다.

    [Jetbrains Rider IDE] Code Style을 기존 .cs 파일로부터 자동으로 찾는 방법

    [Jetbrains Rider IDE] Code Style을 기존 .cs 파일로부터 자동으로 찾는 방법

    [File] => [Settings] => [Editor] => [Code Style] => [C#] => [Auto-Detect Code Style Rules...] => 아래와 같이 팝업 열리면 [OK] => .cs 파일 개수에 따라 detection이 오래 걸릴 수 있다. 체감 상 1분 이내로 소요. 아래 스크린샷과 같이 Jetbrains 공식 문서에는 코드 포맷팅이 정의되면, .cs 파일 하나씩 반영할 수 있습니다. [Ctrl] [Alt] [Enter]

    [Jetbrains Rider IDE] IDE 세팅 값들 Sync(동기화) 활성화

    [Jetbrains Rider IDE] IDE 세팅 값들 Sync(동기화) 활성화

    - UI settings - Keymaps - Code settings - Tools - System settings 등 세팅 값들을 다른 기기에 있는 Rider에도 동일하게 유지할 수 있습니다. 아래 방법은 설명으로 적어서 옮겨서 그렇지 방법은 어렵지 않습니다. [Settings] => [Setting Sync] => [Enable Settings Sync...] 버튼 클릭해서 => Settings Sync 창 열림 => 필요한 항목만 체크 또는 체크 해제 => 이미 서버에 Settings이 있다면 [Get Settings from Account] 로 클릭 => 처음이라면 1분내로 로딩이 끝남 => Rider 재시작 팝업 => [Restart Jetbrains Rider] 클릭해서 Rider IDE 재시작

    [Jetbrains Rider IDE] UI 텍스트를 한국어 => 영어로 변경

    [Jetbrains Rider IDE] UI 텍스트를 한국어 => 영어로 변경

    비교적 최근에 Rider를 업그레이드 하니까 자동으로 한국어 팩이 적용되어서 IDE 전체적으로 한글화가 많이 되었습니다. 그런데 이전처럼 영문이 편할 수도 있기 때문에 다시 영어로 변경하는 방법은 아래와 같습니다. 아래와 같이 [설정] => [플러그인] => Korean Language Pack / 한국어 언어 팩 => 체크 해제 => [저장] => Rider 다시 시작

    유니티 인스펙터 상에 private 변수 보이도록 debug 설정

    유니티 인스펙터 상에 private 변수 보이도록 debug 설정

    위와 같이 Player 스크립트의 변수가 표시되지 않을 때, 디버깅 목적으로 변수를 보이도록 설정하는 방법이 있습니다. 인스펙터 최상단에 점이 세 개 있는 메뉴를 클릭하면 Debug 메뉴를 선택할 수 있습니다. 그럼 아래 스크린샷과 같이 변수들이 인스펙터 상에서 보이게 됩니다.

    Built-in Render Pipeline => URP (Universal Render Pipeline) 세가지 방법

    Built-in Render Pipeline => URP (Universal Render Pipeline) 세가지 방법

    기존 프로젝트가 Built-in Render Pipeline 인데 이것을 URP로 변경하는 방법은 아래와 같이 세 가지 있습니다. 첫째, URP 프로젝트로 template을 시작하는 것이 가장 좋다. 둘째, 기존의 Built-in Render Pipeline 프로젝트에서 직접 설정을 하고, shader나 post processing effect를 다시 생성해야 합니다. 셋째, Window => Rendering => Render Pipeline Convert 메뉴를 통해 Built-in에서 URP로 convert 가능합니다. 출처 : Getting started | Universal RP | 12.1.12 (unity3d.com) Getting started | Universal RP | 12.1.12 ..

    유니티 프로젝트 폴더들의 이름 정하기

    유니티 프로젝트 폴더들의 이름 정하기

    출처 : Best practices for organizing your Unity project | Unity Best practices for organizing your Unity project | Unity Get tips and best practices on how to set up your Unity project for team-based game development and version control, from folder structure to naming and coding standards, and so much more. unity.com

    Unity 2022.3.4f1 LTS 설치 완료

    Unity 2022.3.4f1 LTS 설치 완료

    2023년 7월 3일을 기준으로 recommended 된 유니티 엔진 버전은 Unity 2022.3.4f1 LTS 이다. 보다 상세한 릴리즈 노트는 아래 링크와 같다. 릴리즈 노트에 명시된 것들 중 대부분은 버그 수정이다. Unity 2022.3.4 2022.3.4f1 unity.com

    플러그인 에셋 소개 : Hierarchy Pro 2021

    플러그인 에셋 소개 : Hierarchy Pro 2021

    Hierarchy Pro 2021은 복잡한 hierarchy 트리를 보다 보기 좋게 보이도록 하는 플러그인이다. 가격도 그리 비싸지 않고 좋다. 회사에선 사용하지 않고 개인 프로젝트할 때 주로 쓰는 플러그인이다. 에셋스토어 링크 https://assetstore.unity.com/packages/tools/utilities/hierarchy-pro-2021-89542 Hierarchy Pro 2021 | 유틸리티 도구 | Unity Asset Store Use the Hierarchy Pro 2021 from EM on your next project. Find this utility tool & more on the Unity Asset Store. assetstore.unity.com

    유니티 에셋 스토어 장바구니에 하나 담다 : Hierarchy Folders

    언리얼은 폴더라는 개념이 있는데 유니티는 Hierarchy 상에서는 게임 오브젝트만 가능하고 폴더라는 개념이 없다. 아래 링크의 플러그인은 폴더 생성 뿐만 아니라 다양한 유용한 기능을 제공해 가성비가 좋겠다라고 할 수 있겠다. https://assetstore.unity.com/packages/tools/utilities/hierarchy-folders-157716 Hierarchy Folders | 유틸리티 도구 | Unity Asset Store Use the Hierarchy Folders from Sisus on your next project. Find this utility tool & more on the Unity Asset Store. assetstore.unity.com

    유니티 인스펙터 상에 보이지 않도록 [HideInInspector]

    멤버 변수를 public으로 해두고 유니티 인스펙터 상에 보이지 않게 하려면 아래 코드와 같이 [HideInInspector]를 추가해 주면 된다. public class Player : MonoBehaviour { public static Player instance { get; private set; } [HideInInspector] public PlayerAnimation m_Animation; [HideInInspector] public PlayerStats m_Stats; [HideInInspector] public PlayerHealth m_Health; [HideInInspector] public PlayerInput m_UserInput; [HideInInspector] public Pl..

    유니티 플레이어 게임오브젝트에 컴포넌트 붙이기

    유니티 플레이어 게임오브젝트에 컴포넌트 붙이기

    게임 플레이어를 프리팹으로 만들고, 게임 플레이어는 여러가지 컴포넌트들이 아래와 같이 붙어있다. 이렇게 기능 별로 만들어 두어야 컴포넌트 조립이 수월해진다. 예를 들자면, 적 캐릭터에 붙일 수 있는 컴포넌트들이 있겠다. Character Controller : 유니티에서 기본적으로 제공하는 캐릭터 컨트롤러 Player : 최상위 클래스에 아래의 컴포넌트들을 가지고 있을 수 있다. Player Movement Weapon Handler Player Stats Player Inventory Player Outline Effect Player Footstep Sound Grenade Handler Player Input Head Bobber 보다 자세히 보려면 아래 링크의 프로젝트를 열어보면 되겠다. http..

    유니티 GameObject.FindGameObjectWithTag("Player")

    GameObject.Find() 보다 빠르겠다. 태그로 검색하니까. 참고 문서 https://docs.unity3d.com/ScriptReference/GameObject.FindGameObjectsWithTag.html Unity - Scripting API: GameObject.FindGameObjectsWithTag 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. Close do..