UE4笔记C++篇---Actor物体旋转
C++文件:
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "GameFramework/Actor.h"
#include "MyActor.generated.h"
UCLASS()
class TASK_API AMyActor : public AActor
{
GENERATED_BODY()
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Mesh", meta = (AllowPrivateAccess = true))
UStaticMeshComponent* HealthMesh;
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Mesh", meta = (AllowPrivateAccess = true))
USceneComponent* Root_C;
public:
// Sets default values for this actor's properties
AMyActor();
// Called when the game starts or when spawned
virtual void BeginPlay() override;
// Called every frame
vi

这篇博客详细记录了在UE4中使用C++如何实现Actor物体的旋转操作,内容涵盖关键的C++文件及代码实现。
最低0.47元/天 解锁文章
2833

被折叠的 条评论
为什么被折叠?



