Table of Contents
Extensions for Il2CppReferenceArrays
public static class Il2CppReferenceArrayExt
Inheritance System.Object Il2CppReferenceArrayExt
Return this with additional Items added to it
public static Il2CppReferenceArray<T> AddTo<T>(this Il2CppReferenceArray<T> referenceArray, Il2CppReferenceArray<T> objectsToAdd)
where T : Object;
T
The Type of the Items to add
referenceArray
Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray
objectsToAdd
Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray
Items to add
Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray
Return this with additional Items added to it
public static Il2CppReferenceArray<T> AddTo<T>(this Il2CppReferenceArray<T> referenceArray, System.Collections.Generic.List<T> objectsToAdd)
where T : Object;
T
The Type of the Items to add
referenceArray
Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray
objectsToAdd
System.Collections.Generic.List<T>
Items to add
Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray
Return this with an additional Item added to it
public static Il2CppReferenceArray<T> AddTo<T>(this Il2CppReferenceArray<T> referenceArray, T objectToAdd)
where T : Object;
T
The Type of the Item to add
referenceArray
Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray
objectToAdd
T
Item to add
Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray
Sets all elements in the Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray<> to the default value of each element type.
public static void Clear<T>(this Il2CppReferenceArray<T> referenceArray)
where T : Object;
T
referenceArray
Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray
Return a duplicate of this
public static Il2CppReferenceArray<T> Duplicate<T>(this Il2CppReferenceArray<T> list)
where T : Object;
T
list
Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray
Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray
Return a duplicate of this as type TCast
public static Il2CppReferenceArray<TCast> DuplicateAs<TSource,TCast>(this Il2CppReferenceArray<TSource> list)
where TSource : Object
where TCast : Object;
TSource
TCast
list
Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray
Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray
Returns an empty Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray<>
public static Il2CppReferenceArray<T> Empty<T>(this Il2CppReferenceArray<T> referenceArray)
where T : Object;
T
referenceArray
Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray
Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray
Return the first item of type TCast
public static TCast GetItemOfType<TSource,TCast>(this Il2CppReferenceArray<TSource> referenceArray)
where TSource : Object
where TCast : Object;
TSource
TCast
The Type of the Item you want
referenceArray
Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray
Return all Items of type TCast
public static System.Collections.Generic.List<TCast> GetItemsOfType<TSource,TCast>(this Il2CppReferenceArray<TSource> referenceArray)
where TSource : Object
where TCast : Object;
TSource
TCast
The Type of the Items you want
referenceArray
Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray
System.Collections.Generic.List<TCast>
Check if this has any items of type TCast
public static bool HasItemsOfType<TSource,TCast>(this Il2CppReferenceArray<TSource> referenceArray)
where TSource : Object
where TCast : Object;
TSource
TCast
The Type you're checking for
referenceArray
Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray
Return this with the specified item removed
public static Il2CppReferenceArray<TSource> RemoveItem<TSource,TCast>(this Il2CppReferenceArray<TSource> referenceArray, TCast itemToRemove)
where TSource : Object
where TCast : Object;
TSource
TCast
The Type of the Item you want to remove
referenceArray
Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray
itemToRemove
TCast
The specific Item to remove
Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray
Return this with the first Item of type TCast removed
public static Il2CppReferenceArray<TSource> RemoveItemOfType<TSource,TCast>(this Il2CppReferenceArray<TSource> referenceArray, Model removeChildFrom)
where TSource : Object
where TCast : Model;
TSource
TCast
The Type of the Item you want to remove
referenceArray
Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray
removeChildFrom
Il2CppAssets.Scripts.Models.Model
Model to remove the child dependents from
Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray
Return this with the first Item of type TCast removed
public static Il2CppReferenceArray<TSource> RemoveItemOfType<TSource,TCast>(this Il2CppReferenceArray<TSource> referenceArray)
where TSource : Object
where TCast : Object;
TSource
TCast
The Type of the Item you want to remove
referenceArray
Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray
Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray
Return this with all Items of type TCast removed
public static Il2CppReferenceArray<TSource> RemoveItemsOfType<TSource,TCast>(this Il2CppReferenceArray<TSource> referenceArray, Model removeChildFrom)
where TSource : Object
where TCast : Model;
TSource
TCast
The Type of the Items that you want to remove
referenceArray
Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray
removeChildFrom
Il2CppAssets.Scripts.Models.Model
Model to remove the child dependents from
Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray
Return this with all Items of type TCast removed
public static Il2CppReferenceArray<TSource> RemoveItemsOfType<TSource,TCast>(this Il2CppReferenceArray<TSource> referenceArray)
where TSource : Object
where TCast : Object;
TSource
TCast
The Type of the Items that you want to remove
referenceArray
Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray
Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray
Return as a System.Array
public static T[] ToArray<T>(this Il2CppReferenceArray<T> referenceArray)
where T : Object;
T
referenceArray
Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray
Return as Il2CppSystem.List
public static List<T> ToIl2CppList<T>(this Il2CppReferenceArray<T> referenceArray)
where T : Object;
T
referenceArray
Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray
Il2CppSystem.Collections.Generic.List
Return as System.List
public static System.Collections.Generic.List<T> ToList<T>(this Il2CppReferenceArray<T> referenceArray)
where T : Object;
T
referenceArray
Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray
System.Collections.Generic.List<T>
Return as LockList
public static LockList<T> ToLockList<T>(this Il2CppReferenceArray<T> referenceArray)
where T : Object;
T
referenceArray
Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray