-
-
Notifications
You must be signed in to change notification settings - Fork 79
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
What happened?
Desired Behavior
It is possible to create an instance of a field in the Unity inspector, on a field marked [SerializeReference, SubclassSelector], whose data type is a concrete, pure C# data.
Actual Behavior
Only <null> shows in the Unity inspector on a field marked [SerializeReference, SubclassSelector], whose data type is a concrete, pure C# data.
Code example:
using System;
using UnityEngine;
public class ReferenceTester : MonoBehaviour {
[Serializable]
public class Data {
public int intValue;
}
[SerializeReference, SubclassSelector] private Data example;
}Package Version
1.1.4
Unity Version
2021.2.15f1
mackysoft
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working

