ue4 plugins外掛程式相關的一些小技巧
主要思路:
使用uclass 和uproperty 的config 巨集,uht會自動將相關的屬性值或引用的物件寫入到關聯的 .ini中.並在在建立時會自動使用ini的資訊進行初始化
note:
根據於uclass 的config的配置,會將配置項寫入到相應的.ini
如
uclass(config = engine, defaultconfig)配置資訊會寫入到defaultengine.ini中(不存在的ini會自動建立)..
例子流程:
step 1 定義配置類:
#pragma once#includestep 2 將plugin 配置類和ue4 editor進行繫結:"coreminimal.h
"#include
"mysettings.generated.h
"uclass(config =engine, defaultconfig)
class umysettings : public
uobject
;
/*step 3 editor 進行配置:* */
void
fmypluginmodule::startupmodule()
/**
*/void
fmypluginmodule::shutdownmodule()
/**
*/void
fmypluginmodule::registersettings()
#endif}/*
* */
void
fmypluginmodule::unregistersettings()
#endif
}
step 4 訪問配置類物件:
const ugizmossettings *settings = getdefault();wait edit
UE4 筆記 6 體積
體積是一種特殊的actor,它有很多的用途 限制玩家的移動範圍,決定音響的混響效果等 如上圖所示全是體積,但是在今天的討論中我們只討論兩種體積 lightmass volumes和cull distance volumes 剔除距離體積 關於lightmass的知識這裡有一篇文章 它有兩大作用 限定...
UE4 筆記 4 紋理流送
texture streaming,這部分屬於效能優化 激動 三大議題 什麼是紋理流送,擴充紋理流送池大小,如何強制紋理不使用流送 紋理流送本質上是管理顯示紋理的東西,它是一片專門用於快取多級漸進紋理的記憶體區域。乙個紋理隨著遠離攝像機,那它的lod會流送更小的紋理,使其在紋理流送池中占用的記憶體越...
UE4外掛程式開發
for ue4 4.25.3 01 c 外掛程式 1 常用的外掛程式模板 blueprintlibrary 藍圖節點的c 實現 thirdpartylibrary 當外掛程式依賴第三發庫 lib dll 2 dll pdb檔案 dll是沒有除錯資訊的二進位制機器指令 pdb是dll 除錯資訊的檔案 ...