vault backup: 2024-10-12 17:19:45
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
# CppFromBpEvent
|
||||
|
||||
- **使用位置:** Todo
|
||||
- **引擎模块:** UHT
|
||||
- **元数据类型:** bool
|
||||
- **常用程度:** 0
|
||||
|
||||
指定这是个在C++中定义的蓝图事件。
|
||||
|
||||
早期的UHT会使用这个元数据,不过现在的引擎版本已经不用这个了。
|
||||
|
||||
## 原理代码:
|
||||
|
||||
```cpp
|
||||
public static class UhtFunctionParser
|
||||
{
|
||||
private static UhtParseResult ParseUFunction(UhtParsingScope parentScope, UhtToken token)
|
||||
{
|
||||
if (function.MetaData.ContainsKey(UhtNames.CppFromBpEvent))
|
||||
{
|
||||
function.FunctionFlags |= EFunctionFlags.Event;
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
Reference in New Issue
Block a user