• Manual
  • Scripting API
Show / Hide Table of Contents
  • ScriptableFramework
    • AnimatorList
    • AnimatorListPopulator
    • AnimatorReference
    • AnimatorReferencePopulator
    • AppEvent
    • AppEvent<T>
    • AppEventBase
    • AppEventListener
    • AppEventListener<T>
    • AppEventListenerBase
    • AppVersion
    • BoolEvent
    • BoolEventListener
    • BoolList
    • BoolResponse
    • BoolValue
    • BoundsEvent
    • BoundsEventListener
    • BoundsResponse
    • ColorEvent
    • ColorEventListener
    • ColorList
    • ColorResponse
    • ColorValue
    • DataString
    • DefaultState
    • Dragable
    • Extensions
    • FloatEvent
    • FloatEventListener
    • FloatList
    • FloatResponse
    • FloatValue
    • FoldoutAttribute
    • GameObjectList
    • GameObjectListPopulator
    • GameObjectReference
    • GameObjectReferencePopulator
    • InputValidation
    • IntEvent
    • IntEventListener
    • IntList
    • IntResponse
    • IntValue
    • IReferenceContainer
    • IValueContainer
    • MeshRendererList
    • MeshRendererListPopulator
    • MeshRendererReference
    • MeshRendererReferencePopulator
    • PathType
    • Platform
    • ReferenceItem<T>
    • ReferenceList<T>
    • ReleaseType
    • RuntimeItem<T>
    • RuntimeList<T>
    • RuntimeObject
    • RuntimeObjectManager
    • SceneAsset
    • SceneAsset.SceneLoadException
    • SearchableEnumAttribute
    • StateChange
    • StateMachine
    • StateMachineBase
    • StateMachineController
    • StateMachineReset
    • StateToggle
    • StringEvent
    • StringEventListener
    • StringList
    • StringResponse
    • StringValue
    • TransformList
    • TransformListPopulator
    • TransformReference
    • TransformReferencePopulator
    • ValueItem<T>
    • ValueList<T>
    • Vector2Event
    • Vector2EventListener
    • Vector2List
    • Vector2Response
    • Vector2Value
    • Vector3Event
    • Vector3EventListener
    • Vector3List
    • Vector3Response
    • Vector3Value
  • ScriptableFramework.CustomEditors
    • AppEventEditor
    • AppEventListenerEditor
    • AppVersionEditor
    • DataStringEditor
    • EditorOverride
    • EditorOverride.Cache
    • EditorOverride.Colors
    • FrameworkExtensions
    • RuntimeObjectEditor
    • RuntimeObjectManagerEditor
    • SceneAssetEditor
    • SearchableEnumDrawer
    • SearchablePopup
  • ScriptableFramework.Tests
    • AppEventGenericTests
    • AppEventGenericTests.ClearData
    • AppEventGenericTests.RaiseEvent
    • AppEventGenericTests.RegisterListener
    • AppEventGenericTests.UnregisterListener
    • AppEventListenerGenericTests
    • AppEventListenerGenericTests.OnEventRaised
    • AppEventListenerGenericTests.RegisterSelf
    • AppEventListenerGenericTests.UnregisterSelf
    • AppEventListenerTests
    • AppEventListenerTests.OnEventRaised
    • AppEventListenerTests.RegisterSelf
    • AppEventListenerTests.UnregisterSelf
    • AppEventTests
    • AppEventTests.ClearData
    • AppEventTests.RaiseEvent
    • AppEventTests.RegisterListener
    • AppEventTests.UnregisterListener
    • DataStringTests
    • ListenerResponder
    • ReferenceItemTests
    • ReferenceItemTests.ClearData
    • ReferenceItemTests.ClearWithForAssetReferencingOnly
    • ReferenceListTests
    • ReferenceListTests.ClearData
    • ReferenceListTests.ClearWithForAssetReferencingOnly
    • StateMachineTests
    • StateMachineTests.ClearData
    • StateMachineTests.ReapplyState
    • StateMachineTests.UpdateStateForAll
    • StateMachineTests.UpdateStateForIndex
    • StateMachineTests.UpdateStateForRange
    • StateMachineTests.UpdateStateForSingle
    • StateToggleTests
    • StateToggleTests.RespondToStateMachineChange
    • StateToggleTests.UpdateStateMachine
    • StringListTests
    • ValueItemTests
    • ValueItemTests.ClearData
    • ValueListTests
    • ValueListTests.ClearData

Class ValueList<T>

An abstract generic RuntimeList which encapsulates a given value type. Inherit from this class to create your own ValueList sub class. Give your class the CreateAssetMenu attribute to serialize an instance of it. A default list can be optionally set in the inspector.

Inheritance
System.Object
RuntimeObject
RuntimeList<T>
ValueList<T>
BoolList
ColorList
FloatList
IntList
StringList
Vector2List
Vector3List
Implements
IValueContainer
Inherited Members
RuntimeList<T>.items
RuntimeList<T>.Item[Int32]
RuntimeList<T>.Count
RuntimeList<T>.IsReadOnly
RuntimeList<T>.Add(T)
RuntimeList<T>.AddRange(IEnumerable<T>)
RuntimeList<T>.Initialise(IEnumerable<T>)
RuntimeList<T>.Remove(T)
RuntimeList<T>.GetItem(Int32)
RuntimeList<T>.SetItem(Int32, T)
RuntimeList<T>.IndexOf(T)
RuntimeList<T>.Insert(Int32, T)
RuntimeList<T>.RemoveAt(Int32)
RuntimeList<T>.Contains(T)
RuntimeList<T>.CopyTo(T[], Int32)
RuntimeList<T>.GetEnumerator()
RuntimeList<T>.ToArray()
RuntimeList<T>.ToList()
Namespace: ScriptableFramework
Assembly: cs.temp.dll.dll
Syntax
public abstract class ValueList<T> : RuntimeList<T>, IList<T>, IValueContainer where T : struct
Type Parameters
Name Description
T

This list will be constrained to struct (value type) objects.

Fields

customDefaultValues

A default set of values for this object to initialise to if, in the inspector, UseCustomDefault was set to true.

Declaration
public List<T> customDefaultValues
Field Value
Type Description
List<T>

useCustomDefault

If true, the items property will initialise to the user defined default values.

Declaration
protected bool useCustomDefault
Field Value
Type Description
System.Boolean

Properties

UseCustomDefault

Toggle this on to ensure that the object resets with user defined custom default value(s).

Declaration
public bool UseCustomDefault { get; set; }
Property Value
Type Description
System.Boolean

Methods

Clear()

Empties the current internal list.

Declaration
public override void Clear()
Overrides
ScriptableFramework.RuntimeList<T>.Clear()

Initialise(Int32)

Shorthand for calling Clear () and then adding a number of default objects.

Declaration
public override void Initialise(int newCount)
Parameters
Type Name Description
System.Int32 newCount

The number of default objects to add.

Overrides
ScriptableFramework.RuntimeList<T>.Initialise(System.Int32)

Reset()

Clears the ValueList then, if UseCustomDefault is true, reinitialises the list with the contents of customDefaultValues.

Declaration
public override void Reset()
Overrides
ScriptableFramework.RuntimeList<T>.Reset()

ToNativeArray(Allocator)

Shorthand for creating a new NativeArray out of the current ValueList based on a given allocator type.

Declaration
public virtual NativeArray<T> ToNativeArray(Allocator allocator)
Parameters
Type Name Description
Allocator allocator

Specifies which allocation type to use.

Returns
Type Description
NativeArray<T>

A new NativeArray copy of this list's values.

Implements

IValueContainer
Back to top Generated by DocFX