Any way to create a generic cast in Blueprint?

Hi! I just started using Unreal Engine and feel kinda lost.
I’m used to Godot and Unity.
For this project, I’m trying to make a game like “I’m on observation Duty”. In this image I’m trying, for testing, just set a random object in my array to twice its scale (it changes to other array when it gets bigger).
My problem is it only lets me cast to one type of object.
Where it says “Cast to Plate”, It only works if my object is a plate, but I wanted a generic function that works for any object. Can anyone help me?

If it just the actor scale, you can directly set the actor scale with the object pin:

Otherwise , you will need to use interface function.

2 Likes

Hi! Thanks for replying. I see on your solution you used the “actor” type variable. I was using a “object” variable :sweat_smile:
Still kinda lost in unreal, but that solved it! Thank you so much

1 Like

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