代码格式测试
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#pragma once

#include "CoreMinimal.h"
#include "GameFramework/Pawn.h"
#include "SoundDeviceBase.generated.h"

UCLASS()
class OCTOPUS_API ASoundDeviceBase : public APawn
{
GENERATED_BODY()

public:
// Sets default values for this pawn's properties
ASoundDeviceBase();

UPROPERTY(EditAnywhere)
int32 TestUproperty;

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;

};

Author: 木尘痕
Link: https://muchenhen.com/2020/08/23/%E4%BB%A3%E7%A0%81%E6%A0%BC%E5%BC%8F%E6%B5%8B%E8%AF%95/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.