RuntimeSet<T>


Declaration

public abstract class RuntimeSet<T> : ScriptableObject

Description

A ScriptableObject that stores a list of items. A project asset can be created for the runtime set so it can be referenced throughout the application, but the items are added and removed at runtime.

Type Parameters

TThe type of items to store.

Properties

itemsThe list of stored items in the set (Read only).
CountThe number of items in the set (Read only).

Methods

AddAdds an item to the set if it is not already contained in the set.
RemoveRemoves an item from the set if it is contained in the set.
ClearRemoves all items from the set.
ContainsChecks if the given item is contained in the set.