验证中...
Languages: C/C++
Categories: 游戏开发
Latest update 2018-12-09 10:38
callblue.h
Raw Copy
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "callblue.generated.h"
UCLASS()
class UI_API Acallblue : public AActor
{
GENERATED_BODY()
public:
// Sets default values for this actor's properties
Acallblue();
protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;
public:
// Called every frame
virtual void Tick(float DeltaTime) override;
//以下函数将在蓝图编辑器中进行实现。
UFUNCTION(BlueprintImplementableEvent, Category = "Output")
//定义蓝图函数
void PrintOnScreen(int32 intoPrint);
};
callblue.cpp
Raw Copy
// Fill out your copyright notice in the Description page of Project Settings.
#include "callblue.h"
// Sets default values
Acallblue::Acallblue()
{
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it.
PrimaryActorTick.bCanEverTick = true;
}
// Called when the game starts or when spawned
void Acallblue::BeginPlay()
{
Super::BeginPlay();
//调用蓝图函数
this->PrintOnScreen(39);
}
// Called every frame
void Acallblue::Tick(float DeltaTime)
{
Super::Tick(DeltaTime);
}

Comment list( 0 )

You need to Sign in for post a comment

Help Search

Gitee_sixth 5th_float_left_close