
c++
辰先生
这个作者很懒,什么都没留下…
展开
-
[UE4]C++中获取实时帧数
#include "Engine.h"float UMyLibrary::GetAverageFps(){ extern ENGINE_API float GAverageFPS; return GAverageFPS;}float UMyLibrary::GetAverageMs(){ extern ENGINE_API float GAv...原创 2019-10-30 16:29:41 · 2800 阅读 · 0 评论 -
c++ 前置声明枚举
in a.h:enum class E :uint8{}; in b.h:enum class E :uint8;原创 2018-11-23 17:30:10 · 2589 阅读 · 0 评论 -
[UE4]JsonObject和Fstring互相转换
JsonObject to FstringTSharedRef<TJsonWriter<>> Writer = TJsonWriterFactory<>::Create(&JsonStr);FJsonSerializer::Serialize(JsonObject.ToSharedRef(), Writer); FString to Js...原创 2018-12-13 16:47:19 · 3933 阅读 · 0 评论 -
[UE4]C++编译报错合集,持续更新
Missing '*' in Expected a pointer typeBlueprintCallable don't allow to have reference in argument. You should use pointer.原创 2018-12-14 15:23:59 · 1657 阅读 · 0 评论 -
禁用窗口最大化
void* hWnd = YourWindow->GetNativeWindow()->GetOSWindowHandle();LONG WindowStyle = GetWindowLong((HWND)hWnd, GWL_STYLE);if (WindowStyle & WS_MAXIMIZEBOX){ WindowStyle &= ~...原创 2019-05-29 18:40:13 · 798 阅读 · 0 评论