Program Development

Access the library

The library is one of the fundamental features of the FactVerse Services platform. 3D models, images, videos, sounds, and even Director scenarios created by DataMesh Studio are stored in the library.
SDK
Beginner

Through this example, you will know:

  • How to initialize the library module.
  • How to display resources in the library module by directory.
  • The common interfaces of LibraryManager and how to use them.  

Steps

1

Preparation

Install the latest version of FactVerse SDK | DataMesh.

2

Usage example

  1. Navigate to the "02 Library - List resources" directory and open the ListResourceSample scene.
  2. Select the ListResourceSample object and review the details in the Inspector panel.
  3. Similar to the previous example, utilize the existing DCS configuration file and no additional modifications are required.
  4. Pay attention to the objects under DataMeshModule:
    1. AccountManager: Account module.
    2. LibraryManager: Resource module
  5. Make sure you've successfully logged in as outlined in the previous example, "Logging into FactVerse."
  6. Startthis example. After loading, the content of the current library will be displayed.

  1. Click the Enterbutton next to a directory to view its resources in the directory.

  1. Click the Backbutton in the upper right corner to return to the previous directory.