노출된 변수 편집

This commit is contained in:
강민제 2025-04-21 19:07:42 +09:00
parent 0a1f05cd1c
commit 5ed115899d
3 changed files with 16 additions and 7 deletions

Binary file not shown.

BIN
Content/Maps/Main.umap (Stored with Git LFS)

Binary file not shown.

View File

@ -15,18 +15,27 @@ public:
// Sets default values for this pawn's properties // Sets default values for this pawn's properties
ABasePawn(); ABasePawn();
UPROPERTY(VisibleAnywhere) UPROPERTY(VisibleAnywhere, BlueprintReadWrite)
int32 VisibleAnywhereInt = 12; int32 VisibleAnywhereInt = 12;
UPROPERTY(EditAnywhere) UPROPERTY(EditAnywhere, BlueprintReadOnly)
int32 EditAnywhereInt = 22; int32 EditAnywhereInt = 22;
UPROPERTY(VisibleInstanceOnly) UPROPERTY(VisibleInstanceOnly)
int32 VisibleInstanceOnlyInt = 11; int32 VisibleInstanceOnlyInt = 11;
UPROPERTY(EditAnywhere) UPROPERTY(EditAnywhere, BlueprintReadWrite)
FString TestString = "Hello World"; FString TestString = "Hello World";
UPROPERTY(VisibleDefaultsOnly)
int32 VisibleDefaultOnlyInt = 5;
UPROPERTY(EditDefaultsOnly)
int32 EditDefaultOnlyInt = 9;
UPROPERTY(EditInstanceOnly)
int32 EditInstanceOnlyInt = 14;
protected: protected:
// Called when the game starts or when spawned // Called when the game starts or when spawned
virtual void BeginPlay() override; virtual void BeginPlay() override;