Skip to content
Snippets Groups Projects
Select Git revision
  • 379098f0e172c4aa9a373ac6e249b7e63a6aac52
  • master default
  • dependabot/nuget/source/Sample/Newtonsoft.Json-13.0.1
  • dependabot/nuget/source/MasterDevs.ChromeDevTools.Tests/Newtonsoft.Json-13.0.1
  • dependabot/nuget/source/ProtocolGenerator/Newtonsoft.Json-13.0.1
  • dependabot/nuget/source/ChromeDevTools/Newtonsoft.Json-13.0.1
  • dependabot/nuget/source/ChromeDevTools/System.Net.Http-4.3.4
  • revert-29-revert-24-protocol_62
  • revert-24-protocol_62
  • 1.1.0
  • 1.0.2
  • 1.0.1
  • 1.0.0.40915
13 results

StartCommand.cs

Blame
  • AlignText.cs 610 B
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    
    public class AlignText : MonoBehaviour
    {
        // Start is called before the first frame update
    
        public Camera Cam;
    
        void Start()
        {
            Cam = Camera.main;
        }
    
        // Update is called once per frame
        void Update()
        {
            transform.forward = Cam.transform.forward;
            //Not yet the perfect solution
            //Problem is the relative rotation of the TextMesh to the Line-Parent
            //transform.rotation = Quaternion.Lerp(transform.parent.transform.rotation, Cam.transform.rotation, 0);
        }
    }