HoloFair SDK V4
  • 🛠️Welcome to HoloFair SDK
  • Development
    • ⚙️Initial Setup
      • Start Here
      • Setup Addressables
      • Updating HoloFair SDK in an existing project
      • Scenes & Layers
      • Portals
      • WorldSettings
      • Build & Upload Addressables
        • CloudFront
        • BunnyCDN
      • Pubish & Test your Metaverse
    • ⭐Features
      • Text
      • Respawn
      • Link
      • Image
      • Video
      • TalkZone
      • Emote
      • Timer
      • Add Force
      • Animated Objects
      • Special/VIP content
      • Localization
      • Timeline
      • Focus Point
      • REST API Integration
        • Serialized Variables
        • Smart String
      • Interaction Events
        • Use Cases for Interaction Events
      • Editing Values
      • Control Locker
    • ‼️Important
      • Format of 3D Assets
      • 🆔GUIDs
  • Guides
    • Custom User Authentication
Powered by GitBook
On this page
  1. Development
  2. Features
  3. REST API Integration

Smart String

PreviousSerialized VariablesNextInteraction Events

Last updated 2 years ago

Smart strings allow you to format your URL string using data given by HoloFair. They are not necessary to make REST API components work, but they help create unique requests per user.

Here are the variable provided by Smart String:

  • {0} RemoteWorldModelPath (host and domain of the URL)

    • This is assigned in the Portal.

  • {1} GUID (of the REST API object)

    • This is fetched using GUID component (this is predefined in the project but for the sake of ease, we are fetching it at runtime.

  • {2} UUID (UUID of the local user)

    • HoloFair provides this.

  • {3} Code (code of the current Metaverse project)

    • HoloFair Portal gives each Metaverse a code when first created.

Add a SmartStringInput and a GuidComponenet.

⭐
Example of how Smart String is implmeneted.