adg icon indicating copy to clipboard operation
adg copied to clipboard

Il2CppReferenceArray<Il2CppSystem.Object> usage

Open herbertinger opened this issue 4 years ago • 3 comments

hey i started using ur staff through melonloader

i have older binaries from the game and can check what functions used to look like before il2cpp the rpc arguments used to expect a "params object[]", now after il2cpp it expects an Il2CppReferenceArray<Il2CppSystem.Object>

i tried a few things on how to create an array with this but cant seem to get this to work.

aspecially cuz the arguments arent objects but all kind of types such as floats, booleans, vectors and some other things like enums.

any help would be appreciated :D

herbertinger avatar Feb 06 '21 13:02 herbertinger

Il2CppReferenceArray<T> has an implicit conversion from T[], so you should be able to use a normal array as your argument.

ds5678 avatar Jun 24 '21 21:06 ds5678

Did you ever figure this out?

keir86 avatar Oct 08 '23 07:10 keir86

I think everyone uses Il2CppInterop now.

ds5678 avatar Oct 08 '23 07:10 ds5678