I’ve tried to figure this out for days and I have read info on the internet but I cannot ever get a reference to a variable I’ve created in another blueprint. I even followed Unreal Engine’s tutorials on youtube but I must be missing something. For example let’s say I have a blueprint “Switch” and a blueprint “Light”. I can’t get reference to Light’s custom variable called “Disabled” inside the Switch blueprint with even adding a variable inside Switch that references to that Light blueprint actor specifically. I’ve tried casting also for that but no luck.
Only way I’ve managed to get a reference to that variable “Disabled” is by creating it via C++ like this:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Details) uint32 bDisabled : 1;
Then I can see it basically in every blueprint as long as I reference the blueprint thats parent class is the custom C++ class.
In C++ this seems pretty straightforward and I don’t really need the blueprint solution anymore but I’m interested how it works that way
How do you do the same with blueprints?