I have a ScriptableObject that holds an Generic.Array of another class. But after streaming the assetbundle the array is empty.
Testing with a string-member works perfect.
[System.Serializable]
public class Element
{
public System.String name;
}
public class ElementsHolder : ScriptableObject
{
public System.Collections.Generic.List<Element> list;
}
I’ve implemented it the same way as in the character customization demo.
- Create ElementHolder
- Fill with new Elements
- Create prefab and instantiate
- Build assetbundle from instantiated prefab
- Delete prefab
- Stream assetbundle → empty array
Any suggestions?