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