A simple script to make your object rotate in all 3 axis. Inspired by @Idan, thanks!
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Rotator : MonoBehaviour {
public float X_Rotation = 10f;
public float Y_Rotation = 10f;
public float Z_Rotation = 10f;
public float ExtraSpeed = 2f;
void Update() {
transform.Rotate(new Vector3(X_Rotation,Y_Rotation,Z_Rotation) * ExtraSpeed * Time.deltaTime);
}
}
See the script in action via YouTube.com