puerts
puerts copied to clipboard
[Unreal]如何使用第三方库在Typescript发送restful请求
有谁使用过的,可以提供个思路吗
封装第三方库给ts用。 这有封装的示例:https://github.com/chexiongsheng/puerts_unreal_demo/blob/master/Plugins/Puerts/Source/JsEnv/Private/TestBinding/TestClassWrap.cpp 这是调用上述api:https://github.com/chexiongsheng/puerts_unreal_demo/blob/master/TsProj/CDataTest.ts
client side还是server side?
客户端服务器方面?
client side还是server side?
client,就是在Typescript脚本那里请求接口数据
UE4的HTTP模块提供方法FHttpModule::CreateRequest
创建HTTP请求,可以自行包装之后在puer里面使用。