Skip to content

Validation Support for Composite Binders in Unity #23

@VPDPersonal

Description

@VPDPersonal

Support for:

[View]
public partial class MyView : MonoView
{
    [SerializeField] private CompositeBinder _someField;
}

[Serializable]
public class CompositeBinder : IBinder
{
    [SerializeField] private MonoBinder[] _binders;

    public void Bind(IBinderAdder adder)
    {
        foreach(var binder in _binders)
            binder.Bind(adder);
    }

    public void Unbind()
    {
        foreach (var binder in _binders)
            binder.Unbind();
}

Sub-issues

Metadata

Metadata

Assignees

Labels

Projects

Status

Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions