본문 바로가기

전체 글75

Built-in 에서 URP로 업그레이드 했을 때 메테리얼, 쉐이더 Upgrading your Shaders | Universal RP | 7.1.8 (unity3d.com) Upgrading your Shaders | Universal RP | 7.1.8Upgrading your Shaders If your Project uses shaders from the built-in render pipeline, and you want to switch your Project to use the Universal Render Pipeline instead, you must convert those Shaders to the URP Shaders. This is because built-in Lit shadersdocs.unity3d.comShader mappingsThe ta.. 2024. 9. 4.
절판된 책 깃헙 GitHub - Say-Y/D3d11BookExamForWin10: D3d11 Book Exam for win10 GitHub - Say-Y/D3d11BookExamForWin10: D3d11 Book Exam for win10D3d11 Book Exam for win10. Contribute to Say-Y/D3d11BookExamForWin10 development by creating an account on GitHub.github.com 2024. 8. 19.
3. 유니티 체력, 골드 (플레이어 스탯 생성), 적 체력 표시 이번 글은 해당 영상을 보고 참고하여 작성하였습니다.(2) [Unity 2D Game] Tower Defense #03 - 체력, 골드 시스템 - YouTube  적 체력 데이터 처리EnemyHP.cs더보기using System.Collections;using UnityEngine;using UnityEngine.UI;public class EnemyHP : MonoBehaviour{ [SerializeField] private float maxHP; // 최대 체력 private float currentHP; // 현재 체력 private bool isDie = false; // 적이 사망 상태이면 .. 2024. 8. 2.
NullReferenceException: Object reference not set to an instance of an object 오류 보통은 GetComponent , inspector창에서 직접 연결하여 할당되지않아서 null 이 뜨는데 위의 경우에는 경로를 알 수가 없는 오류가 떴다 이럴땐 유니티를 껐다 켜보자 2024. 7. 31.
3. 타워 배치, 타워 공격 [Unity 2D Game] Tower Defense #02 - 타워 배치, 타워의 공격 (youtube.com) 유튜브를 참고하여 작성하였습니다. TileWall생성빈 오브젝트에 BoxCollider 컴포넌트와 Tile스크립트를 연결 후 프리팹으로 생성한다. Tag는 TileWall을 생성하고 연결하도록 한다. 이때 2D 가 아닌 3D BoxCollider 로 생성해야 충돌체에 반응 한다. TileMap Brush로 등록하여 타워 설치가 가능한 곳에 생성한다.  타워 프리팹 생성하기사용할 타워 이미지를 생성하고 프리팹으로 설정한다. Acher_Blue에는 아래와 같이 애니메이터를 생성하고파라미터는 Vertical, Horizontal, Attack 을 각각 float, float, trigger 타입으.. 2024. 7. 31.
2. 적 캐릭터 타일맵 이동, 애니메이션 [Unity 2D Game] Tower Defense #01 - 맵 배치, 적 생성 및 이동 (youtube.com) 고박사의 유니티 노트 영상을 참고하여 작성하였습니다. 스크립트EnemyCtrl.cs더보기using System.Collections;using System.Collections.Generic;using UnityEngine;public class EnemyCtrl : MonoBehaviour{ private int wayPointCount; // 이동 경로 개수 [SerializeField] private Transform[] wayPoints; // 이동 경로 정보 private int currentIndex =.. 2024. 7. 23.
[유니티 오류] SerializedObjectNotCreatableException: Object at index 0 is null SerializedObjectNotCreatableException: Object at index 0 is null 유니티를 껐다가 키면 해결된다. 2024. 7. 23.
1. 2D 디펜스 게임 개발 프로젝트 세팅 제작계기더보기어제 게임대회 공고를 두 개 찾게 되었는데 "만들래 10분 게임잼" 과 "포톤게임잼" 을 발견하게 되었다. 포톤 게임잼은 멀티플레이어로 개발해야되고 (예선제출 기한일 8월 11일)만들래 게임잼은 10분안에 즐길 주 있는 게임으로 만들어야한다. (제출기한일 8월23일) 첫 게임잼 출전인데 두개를 동시에 하게되어 좀 두렵지만  3d와 2d를 병행하며 제작할 예정이다.  사실 2d 프로젝트는 여러개 만들었었지만 결과물로 나온게 없어서 사실상 첫 프로젝트나 다름 없다.  최근 즐겨하고 있는 운빨존많겜과 로블록스에서 했던 디펜스게임을 섞어서 나만의 디펜스 게임을 제작해보려한다."랜덤성 있는 2D 디펜스게임" (멀티는 미정이지만 멀티로 하고 싶음) 둘다 수상보다는 참가에 의의를 두고 제작할 예정이다. .. 2024. 7. 20.
[포톤 게임잼] 참가 정보 보호되어 있는 글 입니다. 2024. 7. 19.
[백준 허브] 백준, 프로그래머스 자동 커밋하기 1. 백준 허브 크롬, 엣지에서 다운백준허브(BaekjoonHub) - Chrome 웹 스토어 (google.com) 백준허브(BaekjoonHub) - Chrome 웹 스토어Automatically integrate your BOJ submissions to GitHubchromewebstore.google.com 위 사이트에서 다운 받는다. 2. 깃허브 연결하기Authenticate 를 클릭깃허브 로그인하고 연동하기 3. 레파지토리 생성하기Create a new Private Repository 선택하고 레파지토리 이름 작성 후  Get Started 클릭하기 4. 기존에 있던 백준 파일 연결하기1. Link an Existing Repository 선택2. 기존에 있던 깃허브 레파지토리 이름 적기3.. 2024. 7. 19.
만능 기즈모 스크립트 Gizmos 스크립트 공유 using UnityEngine;public enum TYPE{ Line, Cube, Sphere, WireCube, WireSphere,}public class MyGizmos : MonoBehaviour{ public TYPE mode = TYPE.Sphere; public Color _color = Color.yellow; [Header("Shpere")] public float _radius = 0.1f; [Header("Line & Cube")] public Vector3 size = Vector3.one; private void OnDrawGizmos() { // 기즈모 색상 설정 Gizmos.. 2024. 7. 10.
2. Player 움직임 보정하기, 맵 구상, Camera 벽 충돌 보정, Volume, Skybox 추가 PlayerCtrl.cs 수정더보기#pragma warning disable IDE0051using UnityEngine;using UnityEngine.InputSystem;public class PlayerCtrl : MonoBehaviour{ // Component private Animator anim; private new Transform transform; private Camera cam; private Plane plane; private Ray ray; private Vector3 moveDir; private Vector3 hitPoint; private float tmpSprint; private float isSprint; //.. 2024. 7. 10.
유니티 URP, Post Processing(포스트 프로세싱) 적용 안되는 이유 메인 카메라의 Rendering - Post Processing 체크하기 Environment 에 Volume Mask가 Global Volume의 Layer 와 동일한지 확인하기 2024. 7. 10.
앞으로 공부하고 싶은 거 보호되어 있는 글 입니다. 2024. 7. 7.
1. 프로젝트 세팅, 플레이어 이동 Movement Settings 빌트인 3D 프로젝트로 생성하고이름은 ZombieShooter로 생성 1. 사용할 패키지 준비 Universal RPCinemachineInput System 2.에셋 준비POLYGON Apocalypse - Low Poly 3D Art by Synty | 3D Urban | Unity Asset Store POLYGON Apocalypse - Low Poly 3D Art by Synty | 3D 도시 | Unity Asset StoreElevate your workflow with the POLYGON Apocalypse - Low Poly 3D Art by Synty asset from Synty Studios. Find this & other 도시 options on the Unity Asset S.. 2024. 7. 6.
반응형