How to setup a surface oriented mouse cursor

how to create a mouse cursor that follows surface orientation in game (something like vertex paint tool in editor)

?

It’s rather simple. Look into linetrace and use the hit normal and position.

Hello!

I would use decals!

Do a line trace and apply a decal… Move it every time you move the camera or the cursor

thanks. but the thing is i’m using a custom mouse input ( for first person shooter ) in this case mouse point ( the crosshair ) doesn’t stay in the center of the screen or follow the camera.
i tried get hit result under cursor didnt get what i wanted.

but decal will bend my cursor texture.

][1]

So you want your cursor to appear the same even if a part of it goes outside the surface? Like in the picture?

yep. that is what i’m trying to achieve

Seems to work fine on my end:

https://gyazo.com/97050b06f2f56cf600ec7f75a51b24f5

Not the result you’re looking for?

If so instead of decal you may spawn a plane mesh whit a masked/traslucent material, it will automatically scale down as you poin far from your perspective, you’ll need some vector calculations but it won’t be too hard to achieve, and you can also easily make material instances for different cursor types!

ah yes. it worked. thanks a lot :] .

thanks a lot . Everynones( person above :] ) method worked.