Class ReferenceList<T>
A constrained version of RuntimeList that can only be used on reference types.
Implements
Inherited Members
Namespace: ScriptableFramework
Assembly: cs.temp.dll.dll
Syntax
public abstract class ReferenceList<T> : RuntimeList<T>, IList<T>, IReferenceContainer where T : class
Type Parameters
| Name | Description |
|---|---|
| T | Must be at least a class NOT a struct. |
Fields
forAssetReferencingOnly
If true, the items property will not be cleared on application start.
This is useful when wanting a persistent reference to another asset rather than a runtime
reference to an object in a scene.
Declaration
protected bool forAssetReferencingOnly
Field Value
| Type | Description |
|---|---|
| System.Boolean |
Properties
ForAssetReferencingOnly
Toggle this on to ensure that the object ignores all calls for either clearing or reseting its reference(s).
Declaration
public bool ForAssetReferencingOnly { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Methods
Clear()
Empties the current internal list. If marked for asset referencing only, the data will not be cleared.
Declaration
public override void Clear()
Overrides
ScriptableFramework.RuntimeList<T>.Clear()
Initialise(Int32)
Shorthand for calling Clear () and then adding a number of null objects.
Declaration
public override void Initialise(int newCount)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | newCount | The number of null objects to add. |
Overrides
ScriptableFramework.RuntimeList<T>.Initialise(System.Int32)