UnityMol  0.9.6-875
UnityMol viewer / In developement
CamGUI.cs
Go to the documentation of this file.
1 using UnityEngine;
2 using System.Collections;
3 using Molecule.View;
4 using UnityEngine.UI;
5 using UI;
6 
7 public class CamGUI : MonoBehaviour {
8 
9  public Toggle projection;
10  public Toggle distCue;
11 
12  void Start () {
13  //Adding all listeners to the UI Objects
14  projection.onValueChanged.AddListener (Ortopersp);
15  distCue.onValueChanged.AddListener (DistanceCueing);
16  }
17 
18  public void Ortopersp (bool isOn){
19  Camera.main.orthographic = isOn;
20  }
21  public void DistanceCueing(bool isOn){
24  }
25 
26 }
static void ToggleDistanceCueing(bool enabling)
Definition: CamGUI.cs:7
void Ortopersp(bool isOn)
Definition: CamGUI.cs:18
void Start()
Definition: CamGUI.cs:12
Toggle projection
Definition: CamGUI.cs:9
void DistanceCueing(bool isOn)
Definition: CamGUI.cs:21
Toggle distCue
Definition: CamGUI.cs:10
Definition: GUIDisplay.cs:66