UE4 C++常见的一些头文件合集

Components/BoxComponent.h UBoxComponent 盒体触发器
Components/CapsuleComponent.h UCapsuleComponent 胶囊触发器
Components/StaticMeshComponent.h UStaticMeshComponent 静态网格体
Components/SkeletalMeshComponent.h USkeletalMeshComponent 骨架网格体
Components/InputComponent.h UInputComponent SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)绑定用户输入,
PlayerInputComponent->BindAction()
PlayerInputComponent->BindAxis()
Blueprint/UserWidget.h UUserWidget UI
Engine/SkeletalMeshSocket.h USkeletalMeshSocket 在骨架Socket上挂物件
Engine/BlockingVolume.h ABlockingVolume 空气墙
TimerManager.h FTimerManager GetWorldTimerManager().SetTimer
(设置定时器,通过Lambda或者FTimerHandle句柄)
GameFramework/CharacterMovementComponent.h UPawnMovementComponent GetMovementComponent(get/set所有和CharacterMovement相关的参数)
GameFramework/ProjectileMovementComponent.h UProjectileMovementComponent 飞行物运动
GameFramework/PlayerController.h APlayerController 常用于继承了APawn和ACharacter的类,显示鼠标、获得输入、操控Transform
GameFramework/SpringArmComponent.h USpringArmComponent 相机悬臂
Camera/CameraComponent.h UCameraComponent 设置相机
Particles/ParticleSystemComponent.h UParticleSystemComponent 粒子系统 组件(通常作为常驻部件)
Particles/ParticleSystem.h UParticleSystem 粒子系统(通常作为被调用资源)
Sound/SoundCue.h USoundCue 音效资源
Animation/AnimInstance.h UAnimInstance 调用动画实例
UAnimInstance* AnimInstance = GetMesh()->GetAnimInstance()
AnimInstance->Montage_Play(),AnimInstance->Montage_JumpToSection()
Kismet/GameplayStatics.h UGameplayStatics GetPlayerController,GetGameInstance,GetPlayerPawn,OpenLevel,GetPlayerCameraManager ApplyDamage,SpawnEmitterAtLocation,PlaySound2D
Kismet/KismetMathLibrary.h UKismetMathLibrary 数学运算,
Normal/Vector_Normalize(向量归一化)
RandomPointInBoundingBox(在给定盒体中随机取点)
Vector_Reciprocal(向量取倒数)
Kismet/KismetSystemLibrary.h UKismetSystemLibrary 调试上的用处,绘制调试线框
UObject/ConstructorHelpers.h ConstructorHelpers查找资源FObjectFinder,FClassFinder
AIController.h AAIController AI相关的控制类
#include"Runtime\Engine\Classes\Components\TimelineComponent.h" Timeline

猜你喜欢

转载自blog.csdn.net/qq_43021038/article/details/125158603