[unity] 코드 구역 구분 하기
·
게임 개발
//#region? 구역 구분 #region singleton public static GameManager instance = null; private void Awake() { if (null == instance) { instance = this; DontDestroyOnLoad(this.gameObject); } else { Destroy(this.gameObject); } } #endregion
[unity] raycast 사용하기
·
게임 개발
using System.Collections; using System.Collections.Generic; using UnityEngine; public class RayInteraction : MonoBehaviour { private Camera playerCam; public float distance = 100f; public LayerMask whatIsTarget; private Transform moveTarget; private float targetDistance; // Start is called before the first frame update void Start() { playerCam = Camera.main; } // Update is called once per frame ..
[유니티] culling mask 해도 UI 요소가 보일 경우
·
게임 개발
UI를 제외하고 카메라에 culling mask 값을 줬는데 UI 요소가 보일 경우, 해당 UI 의 render mode가 screen overlay로 되어 있을 가능성이 높습니다. 이때, render mode를 screen space - camera로 하고 render camera에 camera를 넣어줍니다.
[유니티] 드리프트 구현 및 충돌 탐지 구현
·
게임 개발
https://heeyeon9578.notion.site/bce98c4a7182452e9ff6fb27eeabfbb9 아케이드 게임 구현 드리프트 및 가속도 구현 heeyeon9578.notion.site
Unity로 printf(”helloGachon!”); 게임개발일지
·
게임 개발
https://gentle-mandolin-ab0.notion.site/printf-helloGachon-e14f9740ae474faf99c12aa9c8e35cdb printf(”helloGachon!”); 게임개발일지 A new tool for teams & individuals that blends everyday work apps into one. gentle-mandolin-ab0.notion.site