I’m UE4 C ++ beginner.
How do I write C ++ that references variables of another class
Or you should not refer to it
UCLASS ()
class HYI_API ACntdown: public AActor
{
GENERATED_BODY ()
public:
// Sets default values for this actor’s properties
ACntdown ();
protected:
// Called when the game starts or when spawned
virtual void BeginPlay () override;
public:
// Called every frame
virtual void Tick (float DeltaTime) override;
// Cntdown timer second value set
UPROPERTY (EditAnywhere, category = “Countdown”)
int32 CntdownTime;
};
I want to reference this “CountdownTime” from another class.