Inspector shows that the serialized object is drawn misplaced.
if a serializable class “MyObject” have two list, and a monobehaviour hava a List,
inspector on List's elements will misplaced MyObject’s two list.
TestScript
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
public class Test : MonoBehaviour
{
public List<MyObject> List1;
public List<MyObject2> List2;
}
[Serializable]
public class MyObject
{
public List<int> List1;
public List<int> List2;
}
[Serializable]
public class MyObject2
{
public List<int> List1;
}
7066042–839620–Test.cs (389 Bytes)
