Unity3D(59)
-
프리팹과 인스턴스 링크 해제하고 싶을 때
인스턴스 개체 위에서 오른쪽 클릭하고 Unpack 다시 링크를 설정하고 싶을 때는 인스턴스 개체를 프리팹 파일 위에 드래그앤 드랍하고 Replace한다.
2022.01.18 -
유니티 폰트 사이트
구글 폰트 https://fonts.google.com/?subset=korean Google Fonts Making the web more beautiful, fast, and open through great typography fonts.google.com
2022.01.18 -
원하는 물체끼리만 충돌시키고 싶을 때
물체 충돌 대상 임의 지정 https://blog.daum.net/arkofna/18283295 Unity collider layer 서로 충돌 안하게 하기 특별한 설정없이는 콜라이더를 붙인 오브젝트끼리는 서로 충돌판정을 받게 되는데, 플레이어와 몬스터만 충돌하지 않게 하는 방법 유니티 예제로 나온건데 색만 바꿔놨습니다. 리지드 바디 붙 blog.daum.net 충돌을 무시하고 싶은 물체들이 있다. 그런 경우에는 오브젝트에 Layer를 설정해준 다음 Project Settings에서 Physics에 들어가 충돌을 무시하고 싶은 Layer의 체크박스만 해제하면 된다. 그러면 콜리젼 콜라이더는 물론 트리거까지 감지되지 않게 된다. 콜리젼 충돌은 무시하더라도, 트리거는 감지하고 싶을 수 있는데 그런 경우에는 ..
2022.01.18 -
22.01.17 [홈워크] 표창 던지기
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Throw : MonoBehaviour { public float rotSpeed; public Vector2 thrSpeed; private Vector2 startPos; private Vector2 endPos; void Start() { } void Update() { if (Input.GetMouseButtonDown(0)) { this.startPos = Input.mousePosition; this.gameObject.transform.position = new Vector2(0f, -4f); rotSpeed = 0f; thrSp..
2022.01.17 -
22.01.17 수업 내용
https://docs.unity3d.com/Manual/ExecutionOrder.html Unity - Manual: Order of execution for event functions Instantiating Prefabs at run time Order of execution for event functions Running a Unity script executes a number of event functions in a predetermined order. This page describes those event functions and explains how they fit into the execution sequence. docs.unity3d.com Git Flow Model
2022.01.17