UE4
Mccreejia
C/C++,Lua & C#, UE4 U3D
展开
-
UE4之Delegate:动态组播
动态多播和动态单播一样,都会用UHT生成一个_DELEGATE宏来定义一个_DelegateWrapper函数.#define DECLARE_DYNAMIC_MULTICAST_DELEGATE( DelegateName ) BODY_MACRO_COMBINE(CURRENT_FILE_ID,_,__LINE__,_DELEGATE) FUNC_DECLARE_DYNAMIC_MULTIC...原创 2019-10-16 21:58:15 · 1164 阅读 · 0 评论 -
UE4之智能指针:引用计数相关类
引用计数类默认的Deleter:template <typename Type>struct DefaultDeleter{ FORCEINLINE void operator()(Type* Object) const { delete Object; }};引用计数的构造器, 分为带默认Deleter和自定义Deleter的版本 :/** Creates ...原创 2019-10-04 10:21:14 · 972 阅读 · 0 评论 -
UE4之Delegate:单播
普通单播的定义#define DECLARE_DELEGATE( DelegateName ) FUNC_DECLARE_DELEGATE( DelegateName, void )#define FUNC_DECLARE_DELEGATE( DelegateName, ... ) \ typedef TBaseDelegate<__VA_ARGS__> DelegateName...原创 2019-10-04 17:10:53 · 544 阅读 · 0 评论 -
UE4之Delegate:组播
定义#define FUNC_DECLARE_MULTICAST_DELEGATE( MulticastDelegateName, ... ) \ typedef TMulticastDelegate<__VA_ARGS__> MulticastDelegateName; template <typename... ParamTypes>class TMultic...原创 2019-10-05 08:53:16 · 1009 阅读 · 0 评论 -
UE4之Delegate:动态单播
定义#define FUNC_CONCAT( ... ) __VA_ARGS__#define DECLARE_DYNAMIC_DELEGATE( DelegateName ) BODY_MACRO_COMBINE(CURRENT_FILE_ID,_,__LINE__,_DELEGATE) FUNC_DECLARE_DYNAMIC_DELEGATE( FWeakObjectPtr, Dele...原创 2019-10-07 17:59:40 · 1073 阅读 · 0 评论