code optimization &new helper functions added / modified
- UnityCore namespace changed to UnityEngine - Object class is no longer a template. FindObjectOfType function set to template - Added LogComponents function. It helps us retrieve components from the target gameObject. - Added GetObjectName function to Object structure (same method is available in utils header) - Added ConvertToSystemString function. Converts const char to system.string (app::String)
This commit is contained in:
@@ -26,6 +26,9 @@ std::string il2cppi_to_string(Il2CppString* str);
|
||||
|
||||
// Helper function to convert System.String to std::string
|
||||
std::string il2cppi_to_string(app::String* str);
|
||||
|
||||
// Helper function to convert const char* to System.String
|
||||
app::String* ConvertToSystemString(const char* str);
|
||||
#endif
|
||||
|
||||
// Helper function to check if a metadata usage pointer is initialized
|
||||
|
||||
Reference in New Issue
Block a user