// TODO this current process isn't ideal the ID is referenced from the TestController script //this could later be a 'Panel Controller', however not sure if this is the best approach //(i.e. relying on a public var too unstable?) /// <summary> /// Detects which user defined toggles are active for viewing media /// </summary> public void LoadMedia() //executed on pressing Media button { #if UNITY_WEBGL StartCoroutine(LoadMediaAsync()); #elif UNITY_STANDALONE DublinCoreReader.LoadXmlFromFile(Paths.ArtefactMetadata); CheckToggles(); #endif }
/// <summary> /// Imports collection artefact's mesh and texture, assigns object info /// </summary> /// <param name="collectionIdentifiers">array of identifiers belonging to collection</param> public void ImportArtefacts(string collectId) { ResetInstances(); #if UNITY_WEBGL StartCoroutine(DownloadArtefactXmlAndImportArtefacts(collectId)); #elif UNITY_STANDALONE DublinCoreReader.LoadXmlFromFile(Paths.ArtefactMetadata); GetIdentifiers(collectId); #endif }
private string browseMode; //user defined browse mode /// <summary> /// Gets all attributes related to a user browse query type. Executes DCReader function. /// </summary> /// <param name="browseType">Type of browse user wants to view</param> public void GetAttributes(string browseType) { // Debug.Log("GetAttr: " + browseType); #if UNITY_WEBGL StartCoroutine(GetAttributesAsync(browseType)); #elif UNITY_STANDALONE // Debug.Log ("Populating DublinCoreReader"); DublinCoreReader.LoadXmlFromFile(Paths.ArtefactMetadata); BrowseMode(browseType); #endif }