【ゲームエンジン】Unityなんでも質問スレpart17 (62レス)
前次1-
抽出解除 必死チェッカー(本家) (べ) 自ID レス栞 あぼーん

リロード規制です。10分ほどで解除するので、他のブラウザへ避難してください。
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バージョンではエラーも警告も出ずに機能します
17: 09/26(金)22:02 ID:dNVtRvLN(2/2)調 AAS
>>16
バグでしたか・・・
ありがとうございます
前次1-
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル

ぬこの手 ぬこTOP 0.005s