Possible to rotate a texture by UScript?

Discussions about Coding and Scripting
User avatar
Barbie
Godlike
Posts: 2956
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Possible to rotate a texture by UScript?

Post by Barbie »

Is it possible to rotate a texture by UScript? I didn't find anything for such in class'Canvas'.
(I want to add a kind of compass (N/W/S/E) to the radar in HUD.)
"If Origin not in center it be not in center." --Buggie
Buggie
Godlike
Posts: 3229
Joined: Sat Mar 21, 2020 5:32 am

Re: Possible to rotate a texture by UScript?

Post by Buggie »

You can't do this directly, However you can use IPanel mesh in any actor (like Panel) and draw actor on canvas. With any desired rotation.