当前位置:网站首页>U++ learning notes tsubclassof()
U++ learning notes tsubclassof()
2022-07-23 21:45:00 【It's a bald rabbit】
UPROPERTY(EditAnywhere)
UClass* type;
UPROPERTY(EditAnywhere)
TSubclassOf<AActor> type1;In the second statement , The template class tells the editor that the properties window only lists from AActor Derived classes as a choice of attributes . In the first statement , You can choose any UClass. The figure below illustrates this .


Except for this UPROPERTY Beyond security , You can also get C++ Level of type security . If you try, it will be incompatible TSubclassOf Types assigned to each other , You will receive compilation errors . If you try to assign generic UClass, It will perform a runtime check to verify that it can perform the allocation . If the runtime check fails , Then the result value is nullptr.
边栏推荐
- Deep learning - NLP classic papers, courses, papers and other resources sorting and sharing
- 壹沓数字机器人入选Gartner《中国AI市场指南》
- LeetCode_376_摆动序列
- Kuberntes cloud native combat VI uses rook to build CEPH cluster
- Openlayers instance accessible map accessible map
- Cluster chat server: Design of database table
- 机器学习习题——对率回归
- DBSCAN点云聚类
- scala編程(初級)
- HANA SQL 的Union和Union All
猜你喜欢

VLAN comprehensive experiment

集群聊天服務器:數據庫錶的設計

-2021 sorting and sharing of the latest required papers related to comparative learning

Principle and implementation of hash table, unordered set and mapping

Compare kernelshap and treeshap based on speed, complexity and other factors

集群聊天服务器:如何解决跨服务器通信问题 | redis发布-订阅

Synchro esp32c3 Hardware Configuration Information serial port Print Output

LeetCode_ 376_ Wobble sequence

Day109. Shangyitong: integrate Nacos, hospital list, drop-down list query, hospital online function, hospital details query

Why cluster chat server introduces load balancer
随机推荐
ApplicationContext introduction
VLAN comprehensive experiment
Is it safe to open a securities account online?
机器学习习题——对率回归
At 12 o'clock on July 23, 2022, the deviation from the top of the line of love life hour appeared, maintaining a downward trend and waiting for the rebound signal.
Euclidean clustering (API) and its single tree segmentation
程序员成长第二十六篇:如何开好每日晨会?
DBSCAN点云聚类
Scala Programming (Junior)
Synchro esp32c3 Hardware Configuration Information serial port Print Output
Postgraduate entrance examination | advanced mathematics Chapter4 indefinite integral
Bisection function details
Cesium keyboard and mouse control camera roaming (source code + principle explanation)
scala编程(中级进阶实验应用)
【数学建模暑期培训】配送中心选址问题
The total ranking of blogs is 918
HANA SQL 的Union和Union All
Serveur de chat de Cluster: conception de la table de base de données
MySQL如何对SQL做prepare预处理(解决IN查询SQL预处理仅能查询出一条记录的问题)
What is Kai Niu? Excuse me, is it safe to open a stock account by mobile phone?