当前位置:网站首页>[ue4] event distribution mechanism of reflective event distributor and active call event mechanism
[ue4] event distribution mechanism of reflective event distributor and active call event mechanism
2022-07-01 04:26:00 【Cheap meow】
Law 1 Active call event mechanism
1. When an event needs to be sent Actor Get the event that needs to be accepted Actor References to

2. When an event needs to be sent Actor Invoking events that need to be accepted Actor Events

Law 2 Event distribution mechanism of reflective event distributor
1. When an event needs to be sent Actor New event distributor in

2. When an event needs to be sent Actor Calling event dispatcher in

3. When the event needs to be accepted Actor Get the event that needs to be sent Actor References to , Subscribe to events that need to be sent Actor Event dispenser for


One is passive, the other is active , I can't say which is better ……
But from a structural point of view , It's better for an input component to be only responsible for its own affairs , So the way of reflection is better
To put it in detail is , If you want to take the initiative , Need to send events Actor Need to know who needs to accept the event Actor, To call its event . But actually I act as an input port , I'm only responsible for accepting input , I don't want to know who I'm going to give , If I want to know who I need to pass the input to , Then I'm not with the increase of the number of projects , To write a long list of objects that I need to call events ? This is not elegant , It's easy to make a mistake , Why don't you come and get it yourself , Come and get it if you need it , I don't care who you are , I'm just responsible for giving it out . So there's a lot less code . and , For those who need to accept Events Actor, Although it needs to know what events need to be sent Actor Who is it? , But it happens to be in charge of it : I need it , I'm going to
边栏推荐
- 软件研发的十大浪费:研发效能的另一面
- How to choose the right server for website data collection?
- Huawei simulator ENSP - hcip - Hybrid Experiment 2
- The junior college students were angry for 32 days, four rounds of interviews, five hours of soul torture, and won Ali's offer with tears
- Dual Contrastive Learning: Text Classification via Label-Aware Data Augmentation 阅读笔记
- What are permissions? What are roles? What are users?
- PgSQL failed to start after installation
- LeetCode 1827. Increment array with minimal operation
- 674. longest continuous increasing sequence force buckle JS
- Procurement intelligence is about to break out, and Alipay'3+2'system helps enterprises build core competitive advantages
猜你喜欢

TS type gymnastics: illustrating a complex advanced type
![[learn C and fly] S1E20: two dimensional array](/img/68/34fad73ff23d3e0719ef364fc60cb5.jpg)
[learn C and fly] S1E20: two dimensional array

Spock单元测试框架介绍及在美团优选的实践___第一章

slf4j 简单实现

Unity之三维空间多点箭头导航

Ten wastes of software research and development: the other side of research and development efficiency

使用scroll-view实现滑块视图可能遇到的问题及其解决方法

After many job hopping, the monthly salary is equal to the annual salary of old colleagues

2022 question bank and answers for safety production management personnel of hazardous chemical production units

Dual Contrastive Learning: Text Classification via Label-Aware Data Augmentation 阅读笔记
随机推荐
Tip of edge browser: enter+ctrl can automatically convert the address bar into a web address
OSPF notes [multiple access, two multicast addresses with OSPF]
Valid @suppresswarnings warning name
Leetcode learning - day 36
2022年化工自动化控制仪表操作证考试题库及答案
Analysis and case of pageobject mode
Day 52 - tree problem
Use winmtr software to simply analyze, track and detect network routing
(12) Somersault cloud case (navigation bar highlights follow)
MySQL advanced -- you will have a new understanding of MySQL
How to use maixll dock
Codeforces Round #721 (Div. 2)B1. Palindrome Game (easy version)B2. Palindrome game (hard version)
创新界,聚势行 | 2022人大金仓“百城巡展”火热开启
小程序中自定义组件
Execution failed for task ‘:app:processDebugResources‘. > A failure occurred while executing com. and
Question bank and answers for chemical automation control instrument operation certificate examination in 2022
Embedded System Development Notes 81: Using Dialog component to design prompt dialog box
The junior college students were angry for 32 days, four rounds of interviews, five hours of soul torture, and won Ali's offer with tears
Rule method: number of effective triangles
VR线上展览所具备应用及特色