Unityã«ããã¦List<T>ã®foreachã¯å³ç¦ã¨ããå®èª¬ããå¹¾æ°å¹´ãããããªãã¨ç¾å¨Unityãåçµä¸ã®ã³ã³ãã¤ã©ã¢ãããã¼ãã«ãã£ã¦è§£æ±ºãããã®ã ï¼ã¤ãã«ï¼ã¨ããããã§ãå®éã©ãããåé¡ããã£ã¦ãã©ã®ããã«è§£æ±ºãããã®ãã詳ããè¦ã¦ããã¾ãã ç¾ç¶ã§ã®Arrayã®foreachã¨Listã®foreach ã¾ãã¯ç¾ç¶ç¢ºèªãããUnityã®ãããã¡ã¤ã©ã§è¦ã¦ã¿ã¾ãã以ä¸ã®æ§ãªã³ã¼ããæ¸ãã¦è¨æ¸¬ããã¨â¦â¦ã var array = new int[] { 1, 2, 3, 4, 5 }; var list = new List<int> { 1, 2, 3, 4, 5 }; // ãã¿ã³ãå©ãã¦è¨æ¸¬éå§ button.OnClickAsObservable().Subscribe(_ => { Profiler.BeginSample("GCAllocCheck:Array"); fo
{{#tags}}- {{label}}
{{/tags}}