OMIDIV
Ortho2DCameraController Class Reference
Inheritance diagram for Ortho2DCameraController:
CameraController OmidivComponent

Public Attributes

Camera MainCam
 The camera being controlled by this.
 
- Public Attributes inherited from OmidivComponent
string ConfigTag = "def"
 Use this to give different instances in difference scenes different saved config.

 

Protected Member Functions

override Color GetBGColor ()
 
override void SetBGColor (Color color)
 
override void Restart ()
 Override this. Called when the visualization restarts (R is pressed).
 
override void DrawGUI ()
 Override this. Use ImGui to draw most UI elements here.
 
override void ReadConfig ()
 Override this. Read from Config here.
Don't forget to include ConfigTag in your config keys.
 
override void WriteConfig ()
 Override this. Write to Config here.
Don't forget to include ConfigTag in your config keys.
 
- Protected Member Functions inherited from CameraController
Color GetBGColor ()
 
void SetBGColor (Color color)
 
- Protected Member Functions inherited from OmidivComponent
virtual void OnEnable ()
 
virtual void OnDisable ()
 
virtual void Awake ()
 
virtual void OnDestroy ()
 
virtual void OnPlayStart ()
 Override this. Called when the visualization starts playing. May be starting from the beginning or resuming.
 
virtual void OnPlayStop ()
 Override this. Called when the visualization stops playing.
 
virtual void Reset_ ()
 Override this. Called when SceneController.OnReset is fired. LoadAudio and LoadMidi will also be called afterwards, so don't do any of that here, but do reload any other resources your component needs.
 
virtual void LoadMidi ()
 Override this. Called when the midi information needs to be loaded from the file. LoadVisuals will also be called afterwards, so don't do any of that here.
 
virtual void LoadVisuals ()
 Override this. Called when the visuals need to be recreated (like when something in the MIDI Controls window is changed).
 
virtual void LoadAudio ()
 Override this. Called when the audio needs to be loaded from the file.
 

Additional Inherited Members

- Properties inherited from CameraController
Color BGColor [get, set]
 
- Properties inherited from OmidivComponent
static bool IsPlaying [get]
 Is the visualization currently playing.
 
static double FrameDeltaTime [get]
 Time.deltaTime when not recording, 1/recording framerate when recording. In most cases, use this instead of Time.deltaTime so that recordings work properly.
 

Member Function Documentation

◆ DrawGUI()

override void Ortho2DCameraController.DrawGUI ( )
protectedvirtual

Override this. Use ImGui to draw most UI elements here.

Subscribe to ImGuiManager.DrawMainMenuItems to add to main menu bar menus instead of here.

Reimplemented from OmidivComponent.

◆ ReadConfig()

override void Ortho2DCameraController.ReadConfig ( )
protectedvirtual

Override this. Read from Config here.
Don't forget to include ConfigTag in your config keys.

Reimplemented from OmidivComponent.

◆ Restart()

override void Ortho2DCameraController.Restart ( )
protectedvirtual

Override this. Called when the visualization restarts (R is pressed).

Reimplemented from OmidivComponent.

◆ WriteConfig()

override void Ortho2DCameraController.WriteConfig ( )
protectedvirtual

Override this. Write to Config here.
Don't forget to include ConfigTag in your config keys.

Reimplemented from OmidivComponent.


The documentation for this class was generated from the following file: