컴포넌트 노출

This commit is contained in:
강민제 2025-04-21 20:44:33 +09:00
parent 5ed115899d
commit 06b88f04d3
4 changed files with 12 additions and 33 deletions

Binary file not shown.

Binary file not shown.

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

Binary file not shown.

View File

@ -15,42 +15,21 @@ public:
// Sets default values for this pawn's properties // Sets default values for this pawn's properties
ABasePawn(); ABasePawn();
UPROPERTY(VisibleAnywhere, BlueprintReadWrite)
int32 VisibleAnywhereInt = 12;
UPROPERTY(EditAnywhere, BlueprintReadOnly)
int32 EditAnywhereInt = 22;
UPROPERTY(VisibleInstanceOnly)
int32 VisibleInstanceOnlyInt = 11;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
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;
private: private:
UPROPERTY() UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Component", meta=(AllowPrivateAccess = "true"))
class UCapsuleComponent* CapsuleComp; class UCapsuleComponent* CapsuleComp;
UPROPERTY() UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Component", meta=(AllowPrivateAccess = "true"))
UStaticMeshComponent* BaseMesh; UStaticMeshComponent* BaseMesh;
UPROPERTY() UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Component", meta=(AllowPrivateAccess = "true"))
UStaticMeshComponent* TurretMesh; UStaticMeshComponent* TurretMesh;
UPROPERTY() UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Component", meta=(AllowPrivateAccess = "true"))
USceneComponent* ProjectileSpawnPoint; USceneComponent* ProjectileSpawnPoint;
public: public: