-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SaintsRow]
should supports SerializeReference
#80
Comments
I'll see if it's possible to let |
[SaintsRow]
should supports SerializeReference
Hi, this feature has been added in 3.4.11 using SaintsField;
public interface IRefInterface
{
public int TheInt { get; }
}
[Serializable]
public struct StructImpl : IRefInterface
{
[field: SerializeField]
public int TheInt { get; set; }
[LayoutStart("Hi", ELayout.FoldoutBox)]
public string myStruct;
public ClassDirect nestedClass;
}
[SerializeReference, ReferencePicker, SaintsRow]
public IRefInterface saints;
[SerializeReference, ReferencePicker(hideLabel: true), SaintsRow(inline: true)]
public IRefInterface inline; Please note: if using together with |
This is working great. Thank you |
I'm trying to use
[SerializeReference]
with[ReferencePicker]
to render inspector for something similar to thisNotice how I need a
Layout
in the subclass. This doesn't work unless I useSaintsRow
.Now layout renders correctly. Only if the reference is assigned.
When the reference is null SaintsRow drawer throw the following exception:
The text was updated successfully, but these errors were encountered: