본문 바로가기

전체 글284

플레이 캐릭터 선택 목차Undead Survivor26.04.04캐릭터 선택 UI1. 'GameStart'의 자식 오브젝트로 빈 게임 오브젝트를 만들기: 이름은 'Character Group', PosY와 Width, Height를 수정, 'Grid Layout Group' Component 추가 ※ Grid Layout Group: 자식 오브젝트를 Grid 형태로 정렬하는 Component 2. 'Button Start'를 만든 'Character Group'의 자식으로 이동: 그리고 이름을 'Character 0'으로 변경 3. 'Character 0'의 자식으로 Image 생성: 이름 변경, PosY 수정, Image 변경 (Image의 'Stand 0'은 남자 캐릭터)--> Hierarchy에서 순서를 Text의 위.. 2026. 4. 4.
게임 시작과 종료 목차Undead Survivor26.03.31게임 시작1. Canvas에 빈 게임 오브젝트로 'GameStart' 생성 2. 'GameStart'의 자식으로 Image 추가: 이름 변경, Image 변경, Set Native Size, PosY와 Scale 수정, Shadow Component 추가, Effect Color 수정 3. 'GameStart'의 자식으로 Button(Legacy) 추가: 이름 변경, Rect Transform 수정, Image 변경, Color 변경, Button의 Navigation 변경, Shadow 추가, Effect Color 변경 → Text 수정: Text 수정, Fomt 변경, Font Size 수정, Outline 추가, Effect Color 변경, Effec.. 2026. 4. 1.
레벨업 시스템 목차Undead Survivor26.03.27UI 완성하기: 레벨업 했을 때 나올 UI를 만들기 1. Canvas에 Image 추가: 이름 변경, Anchor 변경, Color 변경--> 기존의 'LevelUp' 오브젝트는 'ItemGroup'으로 이름을 변경--> Alt + Shift 로 pivot과 position 모두 변경 2. 'LevelUp'의 자식 오브젝트로 창이 될 Image 추가: 이름 변경, Height 수정, Sprite 수정, Color 변경 3. 'Panel'의 자식 오브젝트로 Text(Legacy) 추가: 이름 변경, Anchor 변경, PosY와 Height 수정, Text 수정, Font 변경, Font Size 수정, Alignment 변경, Color 변경, 'Shadow'.. 2026. 3. 27.
무기 장착 표현 목차Undead Survivor26.03.26양손 배치: 왼손과 오른손 각각 배치 >> 왼손 오브젝트1. Player의 자식 오브젝트로 Triangle 추가 2. 'Hand Left' 설정: 이름 변경, Position 및 Rotation 수정, Sprite 수정, Order in Layer 수정 >> 오른손 오브젝트: 왼손 오브젝트를 복사하여 설정만 변경--> 이름 변경, Position 및 Rotation 수정, Sprite 수정, Order in Layer 수정 반전 컨트롤 구현: Script를 통해 캐릭터가 뒤돌면 손에 있는 무기들도 반전되도록 1. 'Hand.cs' 생성using System;using System.Collections;using System.Collections.Generic;.. 2026. 3. 26.
능력 업그레이드 구현 목차Undead Survivor26.03.24아이템 데이터 만들기>> ItemData.cs 생성※ CreateAssetMenu: 커스텀 메뉴를 생성하는 속성 - 코드using System.Collections;using System.Collections.Generic;using UnityEngine;[CreateAssetMenu(fileName = "Item", menuName = "Scriptable Object/ItemData")]public class ItemData : ScriptableObject{ public enum ItemType { Melee, Range, Glove, Shoe, Heal } [Header.. 2026. 3. 24.
HUD 제작하기 목차Undead Survivor26.03.20UI 캔버스: 일반적인 게임오브젝트는 월드 공간에 배치되지만 유저 인터페이스는 스크린 공간에 배치된다. 1. Canvas 생성 2. Canvas Scaler 설정: 어느 해상도든 일정하게 UI를 표현하기 위해 스크립트 준비: 열거형(enum)을 활용하여 데이터 관리 >> HUD.csusing System;using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEngine.UI;public class HUD : MonoBehaviour{ public enum InfoType { Exp, Level, Kill, Time, Health } public In.. 2026. 3. 20.