Skip to content

Commit 99f95cf

Browse files
committed
fix tabs + add tooltip
1 parent 570d412 commit 99f95cf

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Assets/FbxExporters/RotateModel.cs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44

55
public class RotateModel : MonoBehaviour {
66

7-
public float speed = 10f;
8-
9-
void Update () {
10-
transform.Rotate (Vector3.up, speed * Time.deltaTime);
11-
}
12-
}
7+
[Tooltip("Rotation speed in degrees/second")]
8+
[SerializeField]
9+
private float speed = 10f;
10+
11+
void Update () {
12+
transform.Rotate (Vector3.up, speed * Time.deltaTime, Space.World);
13+
}
14+
}

0 commit comments

Comments
 (0)