You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
381 B
15 lines
381 B
using UnityEngine;
|
|
|
|
namespace Mirror.Examples.AdditiveLevels
|
|
{
|
|
// This script is attached to portal labels to keep them facing the camera
|
|
public class LookAtMainCamera : MonoBehaviour
|
|
{
|
|
// LateUpdate so that all camera updates are finished.
|
|
void LateUpdate()
|
|
{
|
|
transform.forward = Camera.main.transform.forward;
|
|
}
|
|
}
|
|
}
|