摘要: 打印屏幕 默认打印屏幕 // 打印至屏幕 FString screenMessage = "(AddOnScreenDebugMessage) Hello world!"; GEngine->AddOnScreenDebugMessage(-1, 1.f, FColor::Green, screen 阅读全文
posted @ 2021-05-04 19:05 砥才人 阅读(6137) 评论(0) 推荐(0) 编辑
摘要: 基本概念 UE4 对 UObject 对象提供垃圾回收 UE4 对原生对象不提供垃圾回收,需要手动进行清理 方式 malloc / free new / delete new与malloc的区别在于,new在分配内存完成之后会调用构造函数。 缺点 如果不及时清理,则会占用内存,或者导致内存泄漏 如果 阅读全文
posted @ 2021-05-04 17:00 砥才人 阅读(7998) 评论(0) 推荐(0) 编辑