Skip to content

Instantly share code, notes, and snippets.

View yexiuph's full-sized avatar
🎯
Focusing

Christian Louis Abrigo yexiuph

🎯
Focusing
View GitHub Profile
@yexiuph
yexiuph / unreal.cpp
Last active April 16, 2022 22:45
HTTP Requests In Unreal Engine C++
// Get
auto request = FHttpModule::Get().CreateRequest();
request->SetURL(FString("http://localhost:3000/api"));
request->ProcessRequest();
request->OnProcessRequestComplete().BindLambda([](FHttpRequestPtr request, FHttpResponsePtr response, bool success) {
try {
if (success) {
// Deserialize the JSON
TSharedPtr<FJsonObject> JsonObject = MakeShareable(new FJsonObject);
TSharedRef<TJsonReader<>> Reader = TJsonReaderFactory<>::Create(response->GetContentAsString());
@yexiuph
yexiuph / AndroidFix.txt
Created November 29, 2022 10:28
Unreal Engine 4/5 Android 12 crash fix without android studio
// This fix would need you to modify Unreal Engine source code
// Go into your Unreal Engine source code
// Navigate to this path UESourcePath\Engine\Build\Android\Java\gradle\app
// Then find dependencies
// Fix Android 12 Crash Permanently - YeXiuPH
implementation 'androidx.work:work-runtime-ktx:2.7.0'
// After that you can test building now with 31 and higher as your target.