Integrated Sebastian Lague's Planet Generator Created Tour function in SectorRenderer which makes the camera follow each terrestrial planet in turn
17 lines
No EOL
337 B
C#
17 lines
No EOL
337 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class SceneCamManager : MonoBehaviour {
|
|
|
|
[HideInInspector]
|
|
public List<SavedView> savedViews;
|
|
|
|
[System.Serializable]
|
|
public class SavedView {
|
|
public string name;
|
|
public float size;
|
|
public Vector3 pivot;
|
|
public Quaternion rotation;
|
|
}
|
|
} |