UE5 C++头文件

U++ 一些常用头文件【持续更新】

虚幻

#include "CoreMinimal.h" //包含主要核心代码
#include "MyCharacter.generated.h" //包含反射机制生成的代码

物体

#include "Components/StaticMeshComponent.h" //静态网格体
  UStaticMeshComponent
#include "Components/BoxComponent.h" //碰撞体
  UBoxComponent
#include "Components/AudioComponent.h" //声音
  UKAudioComponent
#include "Particles/ParticleSystemComponent.h" //粒子
  UparticleSystemComponent

人物

#include "Components/CapsuleComponent.h" //胶囊体
  UCapsuleComponent
#include "Components/SkeletalMeshComponent.h" //骨骼网络体
  USkeletalMeshComponent
#include "GameFramework/SpringArmComponent.h" //弹簧臂 
  USpringArmComponent
#include "Camera/CameraComponent.h" //相机
  UCameraComponent
#include "GameFramework/InputSettings.h" //默认输入设置
  FInputAxisKeyMapping
#include "Components/InputComponent.h"//输入组件

蓝图库

#include "BlueprintGameplayTagLibrary.h" //GameplayTag的蓝图库
#include "Kismet/GameplayStatics.h" //静态蓝图库包含了蓝图函数库
#include "Kismet/KismetSystemLibrary.h" //系统蓝图库(包含静态库)
#include "Kismet/KismetMathLibrary.h" //数学蓝图库
#include "Blueprint/WidgetLayoutLibrary.h" //控件布局库

C++原生

#include "Editor.h" //编辑器 加入模块UnrealEd
#include "UObject/ObjectMacros.h" //UPARAM宏用,让该变量变成输入
#include "GameplayTagContainer.h" //加模块GameplayTags FGameplayTagContainer用
  • 4
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值