【ゲームエンジン】Unityなんでも質問スレpart17 (68レス)
1-

15: 09/26(金)21:31 ID:dNVtRvLN(1/2) AAS
すみませんどなたかよろしければお教えいただきたいです。
Unityのバージョンは Unity 6000.2.5.f1 です。
インスペクター上で配列を表示したいと思っているのですが
using UnityEngine;
public class Manager : MonoBehaviour
{
[SerializeField]
private int[] ints;

private void Start()
{
}


のようにコードを書き、ゲームオブジェクト(Manager)に付けると
・UnityException: GetName can only be called from the main thread.
・InvalidOperationException: Operations that change non-concurrent collections must have exclusive access.
A concurrent update was performed on this collection and corrupted its state. The collection's state is no longer correct.
・NullReferenceException: Object reference not set to an instance of an object
などのエラーが出ます。無視してインスペクタ上のintsをいじろうとすると
大量のエラーがでます
他の型、string[]やGameObject[]でも同様です
どうしたらいいでしょうか?
ちなみに2022バージョンではエラーも警告も出ずに機能します
1-
あと 53 レスあります
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル

ぬこの手 ぬこTOP 0.015s