Can not assign a SerializedScriptableObject to a interface property

Issue #258 resolved
wavebit created an issue

hello, Say we have some classes below. The Health property cannot be assigned from an asset created by TestScriptableObject. The semantics of type selecting dropdown menu only create new instance then assign, it should be using some instance(new or existing) assign some property. Though create an adapter type can solve this problem, the adapter will use some screen space and make the nested struct deeper.

relate issue Issue #247

public class Test : SerializedMonoBehaviour { public IProperty<int> Health; }

[CreateAssetMenu] public class TestScriptableObject : SerializedScriptableObject, IProperty<int> { // implements }

Comments (2)

  1. Log in to comment