public void LoadAboutScene(string itemSelected) { UpdateConfiguration(itemSelected); // This method called from list of Sample App menu buttons switch (itemSelected) { case ("AlfabetizaLIBRAS"): menuItem = MenuItem.AlfabetizaLIBRAS; break; } LoadingScreen.SceneToLoad = "3-" + menuItem.ToString(); if (itemSelected == "AlfabetizaLIBRAS") { LoadingScreen.SceneToLoad = "SampleScene"; } AboutTitle.text = aboutScreenInfo.GetTitle(menuItem.ToString()); AboutDescription.text = aboutScreenInfo.GetDescription(menuItem.ToString()); AboutCanvas.transform.parent.transform.position = Vector3.zero; // move canvas into position AboutCanvas.sortingOrder = 2; // bring canvas in front of main menu isAboutScreenVisible = false; }
public void LoadAboutScene(string itemSelected) { UpdateConfiguration(itemSelected); // This method called from list of Sample App menu buttons switch (itemSelected) { case ("ImageTargets"): menuItem = MenuItem.ImageTargets; break; case ("ModelTargets"): menuItem = MenuItem.ModelTargets; break; case ("GroundPlane"): menuItem = MenuItem.GroundPlane; break; case ("VuMark"): menuItem = MenuItem.VuMark; break; case ("CloudReco"): menuItem = MenuItem.CloudReco; break; case ("ObjectReco"): menuItem = MenuItem.ObjectReco; break; case ("MultiTargets"): menuItem = MenuItem.MultiTargets; break; case ("CylinderTargets"): menuItem = MenuItem.CylinderTargets; break; case ("UserDefinedTargets"): menuItem = MenuItem.UserDefinedTargets; break; case ("VirtualButtons"): menuItem = MenuItem.VirtualButtons; break; } LoadingScreen.SceneToLoad = "3-" + menuItem.ToString(); AboutTitle.text = aboutScreenInfo.GetTitle(menuItem.ToString()); AboutDescription.text = aboutScreenInfo.GetDescription(menuItem.ToString()); AboutCanvas.transform.parent.transform.position = Vector3.zero; // move canvas into position AboutCanvas.sortingOrder = 2; // bring canvas in front of main menu isAboutScreenVisible = true; }
void UpdateAboutText() { AboutScreenInfo m_AboutScreenInfo = new AboutScreenInfo(); string title = m_AboutScreenInfo.GetTitle(m_AboutScreenSample.ToString()); string description = m_AboutScreenInfo.GetDescription(m_AboutScreenSample.ToString()); Text[] textElements = GetComponentsInChildren <Text>(); textElements[0].text = title; textElements[1].text = description; }
void OnVuforiaInitialized(VuforiaInitError error) { VuforiaApplication.Instance.OnVuforiaInitialized -= OnVuforiaInitialized; var aboutScreenInfo = new AboutScreenInfo(); var title = aboutScreenInfo.GetTitle(AboutScreenSampleInfo.ToString()); var description = aboutScreenInfo.GetDescription(AboutScreenSampleInfo.ToString()); var textElements = GetComponentsInChildren <Text>(); textElements[0].text = title; var textMeshProUGUI = GetComponentInChildren <TextMeshProUGUI>(); textMeshProUGUI.text = description; }
public void OnMenuItemSelected(string selectedMenuItem) { if (selectedMenuItem != string.Empty) { // Set the scene to be loaded. LoadingScreen.SceneToLoad = "3-" + selectedMenuItem; // Populate the about screen info. aboutTitle.text = aboutScreenInfo.GetTitle(selectedMenuItem); aboutDescription.text = aboutScreenInfo.GetDescription(selectedMenuItem); // Display the about screen. ShowAboutScreen(true); } }