摘要:
以下两个步骤均完成才可 1、声明自定义日志分类 定义 /** * A macro to declare a logging category as a C++ "extern", usually declared in the header and paired with DEFINE_LOG_CA 阅读全文
posted @ 2022-09-17 19:49
黎沐不吃香菜
阅读(184)
评论(0)
推荐(2)
摘要:
在使用 AddOnScreenDebugMessage 进行日志输出时,输出中文会导致乱码情况 GEngine->AddOnScreenDebugMessage(-1, 10, FColor::Green, TEXT("消息")); 原因是所使用编码集无法解释中文字符 解决办法: 使文件处于未保存状 阅读全文
posted @ 2022-09-17 19:30
黎沐不吃香菜
阅读(1051)
评论(0)
推荐(1)
摘要:
1、直接生成Actor GetWorld()->SpawnActor<AActor>(); GetWorld()->SpawnActor(AActor::StaticClass()); UWorld* world = GetWorld(); world->SpawnActor<AActor>(AAc 阅读全文
posted @ 2022-09-17 19:01
黎沐不吃香菜
阅读(1480)
评论(0)
推荐(1)
摘要:
1、Destroyed函数 调用自身Destroy函数进行强制消亡操作 当对象被删除时(非内存删除)进行回调操作 参数说明 bNetForce 是否强制网络同步删除 bShouldModifyLevel 主要是用来控制先删除actor再修改关卡,还是先修改关卡再删除actor,默认是true,即为先 阅读全文
posted @ 2022-09-17 18:41
黎沐不吃香菜
阅读(410)
评论(0)
推荐(2)
摘要:
1、使用PrintString输出 #include "Kismet/KismetSystemLibrary.h" UKismetSystemLibrary::PrintString(this, TEXT("hello!")); 格式化输出,使用方法和C语言print函数一样 #include "K 阅读全文
posted @ 2022-09-17 17:53
黎沐不吃香菜
阅读(394)
评论(0)
推荐(2)

浙公网安备 33010602011771号