로딩
티스토리 데이터 처리 중입니다.

유니티 C# DontDestroyOnLoad 간단 사용법

 유니티 C# DontDestroyOnLoad 간단 사용법

using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class ExampleDontDestroyOnLoad : MonoBehaviour { void Awake() { var obj = FindObjectsOfType(); if (obj.Length == 1) { DontDestroyOnLoad(this); } else { Destroy(this); } } }...

유니티 C# DontDestroyOnLoad 간단 사용법에 대한 요약내용입니다.

자세한 내용은 아래에 원문링크를 확인해주시기 바랍니다.