private void Start() { filebrowserManager = this.gameObject.GetComponent <FilebrowserManager>(); shareAndDelete = this.gameObject.GetComponent <ShareAndDeleteJsonDirectories>(); selectionHelper = this.gameObject.GetComponent <SelectionHelper>(); loadingScreenObj.SetActive(false); }
public void OpenJsonPreview() { FileManager.JsonDirectories = FilebrowserManager.GetUpdatedDirectories(Application.persistentDataPath); if (FileManager.JsonDirectories[0].jsonSize < 65 && !String.IsNullOrEmpty(FileManager.JsonDirectories[0].jsonFilePath)) { StartCoroutine(OpenPreview(FileManager.JsonDirectories[0])); } else if (FileManager.JsonDirectories[0].jsonSize > 65) { LogManager.Instance.Log("The recording size is to large for the in app viewer. But you can still import the data in blender!", LogManager.Message.Warning); } else { LogManager.Instance.Log("The filepath seems to be corupted. Try to import it in Blender, if that doesn't work drop me a message.", LogManager.Message.Error); } }