随笔分类 -  C++

Const修饰类成员函数
摘要:主要说明const 类成员函数调用方式 以及this指针对应变化 SimpleConst.h #pragma once class A { public: int a; int b; const int c; A(int i, int j, int t); //const 成员函数 void Pri 阅读全文

posted @ 2022-09-25 11:33 Animer 阅读(25) 评论(0) 推荐(0) 编辑

Ue4_GamePlay中PlayerState基本使用
摘要:UE4游戏框架中PlayerState基本使用 1.PlayerState Spawn 过程 void AController::InitPlayerState() { //Playerstate 初始化 PlayerState = World->SpawnActor<APlayerState>(P 阅读全文

posted @ 2022-08-29 23:31 Animer 阅读(1034) 评论(0) 推荐(0) 编辑

Ue4_动态创建子控件
摘要:如何在c++中创建子控件并设置对齐方式(Padding/Size) 在c++中设置Padding/Size ULoadingSlot* LoadingSlot = CreateWidget<ULoadingSlot>(HBoxItemList, MapSlotClass); if (LoadingS 阅读全文

posted @ 2022-05-07 11:17 Animer 阅读(323) 评论(0) 推荐(0) 编辑

Ue4_C++委托
摘要:五种委托形式 1.单播委托 2.多播委托 3.事件 4.动态单播委托 5.动态多播委托 DelegateCombinations.h /** Declares a delegate that can only bind to one native function at a time */ #def 阅读全文

posted @ 2022-04-10 11:53 Animer 阅读(332) 评论(0) 推荐(0) 编辑

Ue4_C++射线检测Trace Channel
摘要:射线检测方式 Object Channels (对象通道)/ Trace Channels(跟踪通道) 包括 Object /Trace Channel 二者一共可以自定义通道18个 一. 根据Object type进行类型检测 UKismetSystemLibrary::LineTraceSing 阅读全文

posted @ 2022-04-06 22:12 Animer 阅读(2198) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示