GieziJo / ScriptableObjectVariant

Unity Odin editor helper which permits to set a "SOVariant" attribute to a ScriptableObject and override, or not, certain fields (similar to prefab variants but for scriptable objects).
MIT License
55 stars 5 forks source link

Collections flag not work #14

Closed mitay-walle closed 10 months ago

mitay-walle commented 2 years ago

I've List of references to another ScriptableObjects, and IsOverriden is true, but if I turn it off, I can't turn it on back

GieziJo commented 2 years ago

Thanks for the bug report. Could you write a minimal working example of what is not working? This code works as expected for me:

[SOVariant, CreateAssetMenu]
public class TestSO : ScriptableObject
{
    public List<TestSONonVariant> myList;
}
[CreateAssetMenu]
public class TestSONonVariant : ScriptableObject
{
    [SerializeField] private float data;
}