Table of Contents
Extensions for Il2cpp objects
public static class Il2CppSystemObjectExt
Inheritance System.Object Il2CppSystemObjectExt
Check if object is the same type as T
public static bool Is<T>(this Il2CppObjectBase instance, out T castObject)
where T : Il2CppObjectBase;
T
Type to check
instance
Il2CppInterop.Runtime.InteropTypes.Il2CppObjectBase
castObject
T
The casted object if this is of type T
Check if object is the same type as T
public static bool Is<T>(this Il2CppObjectBase instance)
where T : Il2CppObjectBase;
T
Type to check
instance
Il2CppInterop.Runtime.InteropTypes.Il2CppObjectBase
Check if object is the same type as T
public static bool Is<T>(this T instance, out T castObject)
where T : Il2CppObjectBase;
T
Type to check
instance
T
castObject
T
The casted object if this is of type T
Check if object is the same type as T
public static bool IsType<T>(this Object instance, out T castObject)
where T : Object;
T
Type to check
instance
Il2CppSystem.Object
castObject
T
The casted object if this is of type T
Check if object is the same type as T
public static bool IsType<T>(this Object instance)
where T : Object;
T
Type to check
instance
Il2CppSystem.Object
Is this Reference equal to another Object's Reference?
public static bool ReferenceEquals(this Il2CppObjectBase instance, Il2CppObjectBase to);
instance
Il2CppInterop.Runtime.InteropTypes.Il2CppObjectBase
to
Il2CppInterop.Runtime.InteropTypes.Il2CppObjectBase
Object to compare to
Box a bool into an Il2cpp object
public static Object ToIl2Cpp(this bool b);
Box a float into an Il2cpp object
public static Object ToIl2Cpp(this float f);
Box a int into an Il2cpp object
public static Object ToIl2Cpp(this int i);
Gets the exact il2cpp type name of an object
public static string TypeName(this Il2CppObjectBase obj);
obj
Il2CppInterop.Runtime.InteropTypes.Il2CppObjectBase