Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Il2CppReferenceArray<Il2CppSystem.Object> usage #27

Open
herbertinger opened this issue Feb 6, 2021 · 3 comments
Open

Il2CppReferenceArray<Il2CppSystem.Object> usage #27

herbertinger opened this issue Feb 6, 2021 · 3 comments

Comments

@herbertinger
Copy link

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

@ds5678
Copy link
Contributor

ds5678 commented Jun 24, 2021

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

@keir86
Copy link

keir86 commented Oct 8, 2023

Did you ever figure this out?

@ds5678
Copy link
Contributor

ds5678 commented Oct 8, 2023

I think everyone uses Il2CppInterop now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants