概要
using System.Collections; using UnityEngine; public class Example : MonoBehaviour { private IEnumerator Start() { while ( true ) { yield return 0; } } }
yield return null
なら GC Alloc は発生しない
検証環境
- Unity 2017.4.7f1
using System.Collections; using UnityEngine; public class Example : MonoBehaviour { private IEnumerator Start() { while ( true ) { yield return 0; } } }
yield return null
なら GC Alloc は発生しない