docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class GlobalVariablesSource

    Can be used to provide global values that do not need to be passed in as arguments when formatting a string. The smart string should take the format {groupName.variableName}. e.g {global.player-score}. Note: The group name and variable names must not contain any spaces.

    Inheritance
    object
    PersistentVariablesSource
    GlobalVariablesSource
    Implements
    ISource
    ISerializationCallbackReceiver
    Inherited Members
    PersistentVariablesSource.IsUpdating
    PersistentVariablesSource.Count
    PersistentVariablesSource.IsReadOnly
    PersistentVariablesSource.Keys
    PersistentVariablesSource.Values
    PersistentVariablesSource.this[string]
    PersistentVariablesSource.EndUpdate
    PersistentVariablesSource.BeginUpdating()
    PersistentVariablesSource.EndUpdating()
    PersistentVariablesSource.UpdateScope()
    PersistentVariablesSource.TryGetValue(string, out VariablesGroupAsset)
    PersistentVariablesSource.Add(string, VariablesGroupAsset)
    PersistentVariablesSource.Add(KeyValuePair<string, VariablesGroupAsset>)
    PersistentVariablesSource.Remove(string)
    PersistentVariablesSource.Remove(KeyValuePair<string, VariablesGroupAsset>)
    PersistentVariablesSource.Clear()
    PersistentVariablesSource.ContainsKey(string)
    PersistentVariablesSource.Contains(KeyValuePair<string, VariablesGroupAsset>)
    PersistentVariablesSource.CopyTo(KeyValuePair<string, VariablesGroupAsset>[], int)
    PersistentVariablesSource.GetEnumerator()
    PersistentVariablesSource.TryEvaluateSelector(ISelectorInfo)
    Namespace: UnityEngine.Localization.SmartFormat.Extensions
    Assembly: Unity.Localization.dll
    Syntax
    [Serializable]
    [Obsolete("Please use PersistentVariablesSource instead (UnityUpgradable) -> PersistentVariablesSource")]
    public class GlobalVariablesSource : PersistentVariablesSource, ISource, ISerializationCallbackReceiver

    Constructors

    Name Description
    GlobalVariablesSource(SmartFormatter)

    Creates a new instance of the source,

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)