Class LanguageTable
A table thats used for storing translations.
Implements
ISerializationCallbackReceiver
Inherited Members
ScriptableObject.SetDirty()
ScriptableObject.CreateInstance<T>()
Namespace: WeaverCore.Features
Assembly: WeaverCore.dll
Syntax
[CreateAssetMenu(fileName = "LanguageTable", menuName = "WeaverCore/Language Table")]
public class LanguageTable : ScriptableObject, ISerializationCallbackReceiver
Properties
| Edit this page View SourceLanguage
Declaration
public SupportedLanguages Language { get; }
Property Value
Type | Description |
---|---|
SupportedLanguages |
SheetTitle
Declaration
public string SheetTitle { get; }
Property Value
Type | Description |
---|---|
string |
Methods
| Edit this page View SourceGetString(string, string)
Gets a language string based on a key
Declaration
public string GetString(string key, string fallback = null)
Parameters
Type | Name | Description |
---|---|---|
string | key | |
string | fallback |
Returns
Type | Description |
---|---|
string |
HasString(string)
Does this language table have the specified key
Declaration
public bool HasString(string key)
Parameters
Type | Name | Description |
---|---|---|
string | key | The key to check for |
Returns
Type | Description |
---|---|
bool |
Implements
UnityEngine.ISerializationCallbackReceiver