Generic objects in the inspector

Hello,

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.

From the lack of replies I guess it is not possible to get a generic object to appear in the inspector?

Thanks,
Justin

the unity iphone 1.x editor bases on the unity 2.1 editor, it can not show anything like that.

the editor capabilities got to the current level with 2.5

will change with u3 then

So if I am using Unity 3 beta 5, it should show it? If that is the case and my code is correct, I’ll file a bug.

no not needfully.

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.