• 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 ReferenceList<T>

A constrained version of RuntimeList that can only be used on reference types.

Inheritance
System.Object
RuntimeObject
RuntimeList<T>
ReferenceList<T>
AnimatorList
GameObjectList
MeshRendererList
TransformList
Implements
IReferenceContainer
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>.Reset()
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 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)

Implements

IReferenceContainer
Back to top Generated by DocFX