UE4 C++与蓝图的继承问题

C++写了一个类MyChar,并派生了一个蓝图子类BP_MyCharacter。

// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "GameFramework/Character.h"
#include "MyCharacter.generated.h"

using namespace UP;
using namespace UF;

UCLASS()
class CPPTEST_API AMyCharacter : public ACharacter
{
	GENERATED_BODY()

public:
	// Sets default values for this character's properties
	AMyCharacter();

protected:
	// Called when the game starts or when spawned
	virtual void BeginPlay() override;

public:	
	// Called every frame
	virtual void Tick(float DeltaTime) override;

	// Called to bind functionality to input
	virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override;

	UPROPERTY(VisibleAnywhere)
	class UCameraComponent* fpsCamera;


};


// Fill out your copyright notice in the Description page of Project Settings.


#include "M

你可能感兴趣的:(ue4,c++,开发语言)