Skip to Content
ModulesEssentials

Essentials

The Essentials module provides core utility functions for accessing localization settings and streaming assets URLs in your Unity game.

Overview

The Essentials module allows you to:

  • Get the current localization/language setting
  • Access the streaming assets URL for your game

Methods

GetLocalization

Use this method to get the current localization setting from the Pixidus SDK.

// Get localization string localization = PixidusSDK.GetLocalization(); Debug.Log("Current localization: " + localization);

Returns: string - The current localization code (e.g., “en”, “tr”, “fr”)


GetStreamingAssetsUrl

Use this method to get the streaming assets URL for your game.

// Get streaming assets URL string streamingAssetsUrl = PixidusSDK.GetStreamingAssetsUrl(); Debug.Log("Streaming assets URL: " + streamingAssetsUrl);

Returns: string - The URL to access streaming assets for your game


Example Usage

Here’s a complete example of how to use the Essentials module:

using UnityEngine; using TMPro; using Pixidus; public class EssentialsExample : MonoBehaviour { public TMP_Text resultText; public void GetLocalization() { resultText.text = "Localization: " + PixidusSDK.GetLocalization(); } public void GetStreamingAssetsUrl() { resultText.text = "Streaming Assets Url: " + PixidusSDK.GetStreamingAssetsUrl(); } }

Support

Need help? Our support team is here for you:

Last updated on