Move UI element towards direction it is facing

I have a text element which is rotated by some degrees. I want to move that towards the direction it is facing by some units in code.

This is what it looks like:

Move UI element towards direction it is facing

I want to move it a few units towards the direction it's facing so it looks like this:

Move UI element towards direction it is facing

Everything is contained in a Canvas and all thus all elements have a Rect Transform. The Rect Transform of the text in question for example has a rotation of -22 (in the z-axis).

I can only manage to move it in the x or y direction, but not in both in a uniform way. How can I do this?

Replay

Category: unity Time: 2016-07-29 Views: 0
Tags: canvas unity

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.208 (s). 12 q(s)