-
There are two classes here: class Torappu.Network.Networker.<_HttpRequest>c__Iterator5 : System.Object, System.Collections.IEnumerator, System.IDisposable, System.Collections.Generic.IEnumerator<System.Object>
{
System.String url; // 0x8
System.String text; // 0xc
System.Collections.Generic.Dictionary<System.String,System.String> header; // 0x10
Torappu.Network.WebHttpResponse outResponse; // 0x14
} class Torappu.Network.WebHttpResponse: System.Object
{
System.String text; // 0x18
System.Byte[] data; // 0x1c
System.String error; // 0x20
System.Void .ctor(); // 0x01429e94
System.Void ClonePublicFields(Torappu.Network.WebHttpResponse target); // 0x01429eba
} I want to get the value of text in WebHttpResponse and print it. _HttpRequest.implementation = function(url: Il2Cpp.String, param: Il2Cpp.String, header: Il2Cpp.Object, WebResponse: Il2Cpp.Object) {
console.log("[_HttpRequest] outResponse:\t" + WebResponse); //[_HttpRequest] outResponse: Torappu.Network.WebHttpResponse
const response_text = WebResponse.field('text');
console.log("[_HttpRequest] Response_text:\t" + response_text); //[_HttpRequest] Response_text: System.String text; // 0x18
const result = this.method<void>("_HttpRequest").invoke(url, param, header, WebResponse);
return result;
} How to get a readable response_text? |
Beta Was this translation helpful? Give feedback.
Answered by
thinhbuzz
Feb 7, 2024
Replies: 1 comment 2 replies
-
Just response_text.value |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
svghs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just response_text.value