Lua基本语法

摘要: Lua 基本语法详解 1. 注释 -- 单行注释 --[[ 多行注释 可以写很多行 --]] @class MyClass -- 注解注释(用于 IDE 类型提示) 2. 变量和数据类型 变量声明 local x = 10 -- 局部变量(推荐) y = 20 -- 全局变量(不推荐) local 阅读全文
posted @ 2025-10-20 15:42 阿华小青蛙 阅读(24) 评论(0) 推荐(0)

Unreal项目引用第三方库时,由于MSVC版本不同导致Link失败的问题

摘要: 1>AirLib.lib(FileSystem.obj) : 找到 MSIL .netmodule 或使用 /GL 编译的模块;正在使用 /LTCG 重新启动链接;将 /LTCG 添加到链接命令行以改进链接器性能 1>EXEC : fatal error C1900: “P1”(第“20240319 阅读全文
posted @ 2025-09-15 14:59 阿华小青蛙 阅读(59) 评论(0) 推荐(0)

Unreal 配置插件依赖另一个插件

摘要: 例如:插件A依赖插件B 1、把两个插件都放到项目Plugins文件夹下 2、修改插件A的A.uplugin文件,添加如下片段 "Plugins": [ { "Name": "B", "Enabled": true }, ... ] 3、修改插件A跟插件B的加载时间设置 打开A.uplugin,设置加 阅读全文
posted @ 2024-09-10 16:33 阿华小青蛙 阅读(405) 评论(0) 推荐(0)

unreal RenderTarget存本地PNG

摘要: bool APIPCamera::SaveRenderTargetToFile(UTextureRenderTarget2D* rt, const FString& fileDestination) { { FTextureRenderTargetResource* rtResource = rt- 阅读全文
posted @ 2024-05-30 18:47 阿华小青蛙 阅读(129) 评论(0) 推荐(0)

UE5 Unix时间戳转FDateTime

摘要: FDateTime UPV3BlueprintFunctionLibrary::UnixToDateTime(int64 UnixTime) { return FDateTime(1970, 1, 1) + FTimespan(0,0,UnixTime); } FDateTime UPV3Bluep 阅读全文
posted @ 2024-04-23 15:32 阿华小青蛙 阅读(254) 评论(0) 推荐(0)

关于 unreal 网络复制,当复制属性值不改变时,不会调用On_Rep函数的问题

摘要: DOREPLIFETIME_CONDITION_NOTIFY(APV3WeaponInstant, HitImpactNotify, COND_SkipOwner, REPNOTIFY_Always); // DOREPLIFETIME_CONDITION(APV3WeaponInstant, Hi 阅读全文
posted @ 2024-03-29 13:14 阿华小青蛙 阅读(144) 评论(1) 推荐(0)

unreal 第三人称射击轨迹计算逻辑

摘要: https://www.youtube.com/watch?v=_HygH6eijNc 阅读全文
posted @ 2024-03-18 10:26 阿华小青蛙 阅读(11) 评论(0) 推荐(0)

Unreal Cpp 获取本机IP地址

摘要: FString UCT3FunctionLibrary::GetLocalIPAddress() { FString IpAddr("NONE"); bool bCanBind = false; TSharedRef<FInternetAddr> localIp = ISocketSubsystem 阅读全文
posted @ 2024-03-14 10:28 阿华小青蛙 阅读(117) 评论(0) 推荐(0)

AirSim新增自定义传感器(CustomSensor)

摘要: https://github.com/Microsoft/AirSim/commit/c6fd9de5d75dd0d57383d2b198f35d03212c26ab#diff-be9baf924640e7349381d28923d3a20a02d246b8378471ff1badf01357f16 阅读全文
posted @ 2023-12-28 16:18 阿华小青蛙 阅读(81) 评论(0) 推荐(0)

Unreal NotifyHit无效

摘要: 1、蓝图类是否打开生成模拟命中事件 2、检查网格体物理模型中是否打开生成模拟命中事件 阅读全文
posted @ 2023-12-05 10:04 阿华小青蛙 阅读(52) 评论(0) 推荐(0)