Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

Rotating an object in Unity

using UnityEngine;

public class Rotation_demo : MonoBehaviour
{
    Vector3 rot=new Vector3(10,10,10);
  
    void Start()
    {
       transform.Rotate(rot);
        
    }
}
Source by vionixstudio.com #
 
PREVIOUS NEXT
Tagged: #Rotating #object #Unity
ADD COMMENT
Topic
Name
6+1 =