![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
UnrealEngin4
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 · 1141 阅读 · 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 · 949 阅读 · 0 评论 -
【UE4学习】TTuple源码分析
TTuple定义template <typename... Types>struct TTuple : UE4Tuple_Private::TTupleImpl<TMakeIntegerSequence<uint32, sizeof...(Types)>, Types...>{private: typedef UE4Tuple_Private::TTu...原创 2019-10-03 12:43:47 · 817 阅读 · 0 评论 -
UE4之Delegate概览
UE4中的代理宏定义,都在DelegateCombinations.h中声明代理宏概览(一)无参数版本单播#define DECLARE_DELEGATE( DelegateName ) FUNC_DECLARE_DELEGATE( DelegateName, void )多播#define DECLARE_MULTICAST_DELEGATE( DelegateName ) FUN...原创 2019-10-04 15:31:38 · 369 阅读 · 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 · 509 阅读 · 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 · 979 阅读 · 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 · 1046 阅读 · 0 评论