Description
Returns a localized string of a key from the language dictionary (scriptable object), provided the key exists in the dictionary, otherwise, throws an error.
Type
Method
Syntax
string localizedString = loxisManager.getByKey("someKey");
Example
using UnityEngine;
using AMACreative.Loxis;
public class LangaugeChangeTester : MonoBehavior
// Get reference to a LoxisManager instance through the inspector
[SerializeField] private LoxisManager loxisManager;
private void Start()
{
string hello = loxisManager.getByKey("hello");
}
}