Skip to content

Collection editing #19

@ilovepatatos

Description

@ilovepatatos

I have a list of SerializableInterface<>.
Editing the value of one element in the list changes the value of all elements with the same type in that list.

public class CombineStringsValue : MonoBehaviour, IProvideValue<string>
{
    [SerializeField] private List<SerializableInterface<IProvideValue<string>>> m_Providers;

    public string Value => m_Providers.Aggregate("", (current, provider) => current + provider.Value.Value);
}

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions