title: How to specify the rotation value of an object with Unity's Update function
body: <p>I want to specify the object rotation value in Unity.</p>
  
  <p>I don't want to rotate the object.</p>
  
  <p>I wrote the following code.</p>
  
  <pre><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  
      public class test_rotate : MonoBehaviour {
  
          int test_x = 10;
  
          // Use this for initialization
          void Start () {
  
          }
  
          // Update is called once per frame
          void Update () {
              this.transform.Rotate(test_x, 0, 0);
          }
      }
  </code></pre>
  
  <p>Then the object starts to rotate.</p>
  
  <p><a href="https://i.stack.imgur.com/oG6hm.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oG6hm.gif" alt="enter image description here"></a></p>
  
  <p>This is not what I wanted.</p>
  
  <p>I just want to set the rotation value of the object to (10,0,0).</p>
  
  <p>I also tried the following code:</p>
  
  <pre><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  
  public class test_rotate : MonoBehaviour {
  
      int test_x = 10;
  
      // Use this for initialization
      void Start () {
          this.transform.Rotate(test_x, 0, 0);
      }
  
      // Update is called once per frame
      void Update () {
      }
  }
  </code></pre>
  
  <p>Then it worked as expected, but I want to do this with the Update function instead of the Start function.</p>
  
  <p>What should I do?</p>