// get the type of the current camera public string GetCurrentCameraTypeText() { Cinematic activeCinematic = Cinematic.GetActiveCinematic(); if (null != activeCinematic) { return("Cinematic"); } return("GameCameraBehavior"); }
// get a description of the current camera public string GetCurrentCameraText() { Cinematic activeCinematic = Cinematic.GetActiveCinematic(); if (null != activeCinematic) { return(activeCinematic.name); } if (Application.isPlaying) { if (GetNewestRunningBehaviorIndex() >= 0) { return(_runningBehaviors[GetNewestRunningBehaviorIndex()].behavior.GetCameraText()); } return("NO CAMERA"); } else // editor { return("game cam default"); } }