先日、デジゲー博に行った際に購入した「Unityマニアックス」。 bootlegstore.stores.jp これは、とても勉強になる。 なかでも特に気になったのが、この部分だ。 using UnityEngine; public class TestComponent : MonoBehaviour { private void Start() { PrintEnumList<EPet>(); PrintEnumList<ELanguage>(); } private void PrintEnumList<T>() where T : struct { System.Type type = typeof( T ); T[] values = (T[])System.Enum.GetValues( type ); Debug.LogFormat( "{0} enum list.", ty