Why can I not do this? Assign BlueprintClass default variable

I am coming over from Unity. In Unity I was able to assign default variables for prefabs, in Unreal these are BlueprintClasses from my understanding. Now I want to assign the PhysicsHandlerComponent on the BlueprintClass to the MoverTest1 PhysicsHandlerComponent variable, so I can use it in the Blueprint. But when I want to assign it, it doesn’t show in the editor and I also can’t drag and drop it.

What am I doing wrong? And how are default values usually assigned in BlueprintClasses?

Welcome.

It looks like you’ve made an actor component and somehow put a physics handle in it.

What exactly was the process here?

This is a Static Mesh Actor. Those components cannot see one another. You can hook them up with script, though (think of actors as of dumb glue):

There will be all sorts of strange questions from now on - UE vs Unity - prefabs vs components vs actors vs game objects.


Wish BPs were smarter and actually allowed us to reference stuff directly like OP wants. But no, component initialisation must remain its own branch of magic…


Another way to handle it in UE is via Event Dispatcher delegate subscription. This way no hard reference would be needed.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.