public static void CreateCameraController() { GameObject camObj = new GameObject("GeneratorCameraController"); GeneratorCameraController camCon = camObj.AddComponent <GeneratorCameraController>(); camCon.AddCameras(2); camCon.AddAllGenControllersInScene(); camCon.AlignCamerasWithGenerators(); Selection.activeGameObject = camObj; }
private void OnEnable() { _camController = (GeneratorCameraController)target; UpdateCameraTabs(); }