Cannot multiply a vector and float

It seems I cannot multiply a vector with a float in UE5. I found a workaround, but am not sure if it’s a bug or a perm change. This needs fixing.
Anybody else found any more BP bugs?

4 Likes

You can multiply by a float, select the vector * vector, then drag the float value to the other vector and it will Promote to float.image

19 Likes

This requires the float to be a variable, which I get not having Magic Numbers is wise but come on…

Actually, all you have to do is right click the pin → convert pin → float:
image
It’s called type promotion.

82 Likes

The vector2d * float node that has a vector2d output pin (rather than a vector output) seems to be a problem as when you convert the pins, it removes the float value option. You can work around by splitting the pin and just using the first 2 pins with a Make Vector2D, however this is not the functionality available in UE4.

Thank you for writing this up as I was just about to file my own topic on it.

2 Likes

Thank you :slight_smile:

1 Like

You need to right click the node’s pin and you can set it to any type you want (pretty cool actually)

I see. It just seems to be an extra step, but it’s there.
Thanks for the help.


Not gonna lie, pin convert + add pin is pretty nice to have.

Thanks.

1 Like

This Is What Annoys Me, Wth Am I Supposed To Do, All Tuts Are Rendered Useless, A LOT Of Tutorials Are Rendered Useless, Because Someone Chose To Replace A Basic Vector * float With Nothing

2 Likes

Nvm, I Found Out The Use Of *, +, -, Etc, Yes, I Am A Noob lol, Its Just At The Time I Felt It Was A Big Change, But It Is An Improvement ,


If someone is looking for simple resolve, You can now multiply vector by whatever u want by converting (RMB) pin to other variable type

14 Likes

Thanks :wink: @midgunner66

1 Like

Ty my man!

2 Likes

Thank you for this

1 Like

I’ve been looking so long for it having it under my nose, so to say :slight_smile:

1 Like

Thank you, I was banging my head against the wall trying to figure out how to divide a vector 2d by a float and UE5 saying a float real is not compatible with a vector2d using the divide function. but now I’ve disabled type promotion i can see vector2d/float.

our lord and savior

I’ve been searching an hour for this…it’s ALWAYS SOMETHING STUPID!!! hahahahah

Thanks so much :slight_smile:

After reading about the conversion thing, it was clear and I tried forcing the return value directly on the pin and it’ll convert, even more easily.

Tutorials are saved! Tx eb that helped.