Is it possible for generic objects to appear in the inspector? I tried the following:
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
[System.Serializable]
public class GenericTest<T> {
public T content;
public float aFloat;
}
public class Test : MonoBehaviour {
public GenericTest<int> genericObject;
}
When I assign Test as a component of a GameObject, genericObject is not shown in the inspector. If I completely remove the generics code, genericObject does appear in the inspector. I am using Unity 3 beta 5.
But showing up more complex stuff is a unity 2.5+ thing.
But not all will show up even if you make it serializable. Unsure if generics in general are as unity does not use generics for anything itself.