# RotateTowardsCamera

## How to use

Simply add this script to object that needs to be rotated.

<figure><img src="https://1613353771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fygjewtla1W7kzTTIpGWq%2Fuploads%2FKv9CMz0FrlDopXl4vryW%2Fimage.png?alt=media&#x26;token=f6346004-a531-4695-8bf9-cdbcf3ad251e" alt=""><figcaption><p>There are 2 versions</p></figcaption></figure>

RotateTowardsCamera is more expensive than RotateTowardsCameraJustForward.\
You can compare these two scripts in action and choose what you like more.

{% hint style="info" %}
If you want to use world object that acts like UI but in 3D space

-> use RotateTowardsCameraJustForward.cs
{% endhint %}
