Rotate To Camera

Presented by RotateToCamera class, this component faces its gameobject directly to camera. This could be useful for world space UI elements.

Rotate To Camera component

Parameters in inspector

Anchor Transform – gameobject will be rotated relatively to this transform; if not set, it will use its own transform as anchor

Anchor Dist – distance from anchor transform to this object; if its larger than 0, it will rotate around anchor like on orbit

Last updated