Image rotation with script

how can we image rotate with script.please show me code there as well

Hi @HasnainX,

Can you clarify what you mean by image?

A pc.Texture, a pc.ElementComponent or something else?

I mean can i rotate image with x axis if yes then what type of script do i add.thanks

So if you mean rotate a regular entity via code, then the following code will rotate it 90 degrees on the X axis:

this.entity.rotate(90, 0, 0);
2 Likes

Well thanks Leonidas :slight_smile:

1 Like