UE4笔记C++篇---Actor球物体上下移动
C++文件:
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "GameFramework/Actor.h"
#include "Ball.generated.h"
UCLASS()
class TASK_API ABall : public AActor
{
GENERATED_BODY()
public:
// Sets default values for this actor's properties
ABall();
// Called when the game starts or when spawned
virtual void BeginPlay() override;
// Called every frame
virtual void Tick( float DeltaSeconds ) override;
float RunningTime;
void Print_T(FString InStr);
};
// Fill out your copyright notice in the Description page of Project Settings.
#include "Task.h"
#include "Ball.h"
#i

这篇UE4笔记详细介绍了如何使用C++编程实现Actor类物体的上下移动,涵盖了关键的代码实现和步骤。
最低0.47元/天 解锁文章
3340

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



