Closed SVO-ARBUZ closed 5 months ago
better call GetComponent with fullname like e.g. UnityEngine.GameObject
sigma->GetPropertyValue<std::string>("text");
->
sigma->GetPropertyValue<Unity::System_String*>("text");
thanks for the answer, it works, but there is 1 more question, how can I get a class that is in the game but is not on the object
You probably mean static classes (not attached to a gameobject as a component but persisting during gameplay), for which you can just use offset to dereference to Unity::Component*. However, @fedes1to 's commit https://github.com/sneakyevil/IL2CPP_Resolver/pull/45 added new ways to interact with static classes, you might want to check it out yourself, I haven't tried it yet.
What is the game you are using with IL2CPP Resolver?
SCP:SL
Details:
i need to get a text from gameconsole ui but i get nullptr for all variables I'm trying to get
Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code: