六一的部落格


关关难过关关过,前路漫漫亦灿灿。



定义蓝图中可使用的函数


BlueprintNativeEvent

UFunctions

标记函数通常在蓝图中被覆写, 也可以在C++中覆写, 在加上后缀_Implementation的同名函数中给出实现

如果没有在蓝图中覆写, 而在C++中覆写, 加上_Implementation后缀的同名函数会被自动生成代码调用


 1namespace UF
 2{
 3    // valid keywords for the UFUNCTION and UDELEGATE macros
 4    enum 
 5    {
 6        // ...
 7
 8        /// This function is designed to be overridden by a blueprint, but also has a native implementation.
 9        /// Provide a body named [FunctionName]_Implementation instead of [FunctionName]; the autogenerated
10        /// code will include a thunk that calls the implementation method when necessary.
11        BlueprintNativeEvent,
12
13        // ...
14    };
15}

UFUNCTION


定义蓝图中可使用的函数


BlueprintNativeEvent

UFunctions

标记函数通常在蓝图中被覆写, 也可以在C++中覆写, 在加上后缀_Implementation的同名函数中给出实现

如果没有在蓝图中覆写, 而在C++中覆写, 加上_Implementation后缀的同名函数会被自动生成代码调用


 1namespace UF
 2{
 3    // valid keywords for the UFUNCTION and UDELEGATE macros
 4    enum 
 5    {
 6        // ...
 7
 8        /// This function is designed to be overridden by a blueprint, but also has a native implementation.
 9        /// Provide a body named [FunctionName]_Implementation instead of [FunctionName]; the autogenerated
10        /// code will include a thunk that calls the implementation method when necessary.
11        BlueprintNativeEvent,
12
13        // ...
14    };
15}