We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
how to get type of List or Dictionary ?
The text was updated successfully, but these errors were encountered:
Got the idea from Il2CppArray* vm::Type::GetGenericArgumentsInternal(Il2CppReflectionType* type, bool runtimeArray). Might not covering all the cases.
Il2CppArray* vm::Type::GetGenericArgumentsInternal(Il2CppReflectionType* type, bool runtimeArray)
if (prop_class) { LOGI("prop %s %s", il2cpp_class_get_name(prop_class), prop_name); if(prop_class->generic_class) { const Il2CppGenericInst *inst = prop_class->generic_class->context.class_inst; for (size_t generic_id = 0; generic_id < inst->type_argc; generic_id++) { LOGI("generic type %zu: %s", generic_id, il2cpp_type_get_name(inst->type_argv[generic_id])); } } }
Result:
Since this approach depends on precise Il2CppClass offsets to work and Perfare already removed the versioned offset controls, I'm not gonna file a PR.
Il2CppClass
Sorry, something went wrong.
No branches or pull requests
how to get type of List or Dictionary ?
The text was updated successfully, but these errors were encountered: