18 lines
602 B
Markdown
Raw Normal View History

2024-10-12 17:19:46 +08:00
# MinimalAPI
- **功能描述:** 指定该UInterface对象不导出到别的模块
- **元数据类型:** bool
- **引擎模块:** DllExport
- **常用程度:★**
可以参照UCLASS里的MinimalAPI的解释。
简单来说UInterface对象只是作为接口的辅助对象因此本身并没有什么可值得暴露出来的函数。因此源码里的大部分UInterface对象都被标记成了MinimalAPI以加快编译同时隔绝别的模块使用。
```cpp
UINTERFACE(MinimalAPI, BlueprintType)
class USoundLibraryProviderInterface : public UInterface
{
GENERATED_BODY()
};
```