docs.unity3d.com
    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
    Inherited Members
    PersistentVariablesSource.IsUpdating
    PersistentVariablesSource.Count
    PersistentVariablesSource.IsReadOnly
    PersistentVariablesSource.Keys
    PersistentVariablesSource.Values
    PersistentVariablesSource.Item[String]
    PersistentVariablesSource.EndUpdate
    PersistentVariablesSource.BeginUpdating()
    PersistentVariablesSource.EndUpdating()
    PersistentVariablesSource.UpdateScope()
    PersistentVariablesSource.TryGetValue(String, 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>[], Int32)
    PersistentVariablesSource.GetEnumerator()
    PersistentVariablesSource.TryEvaluateSelector(ISelectorInfo)
    Namespace: UnityEngine.Localization.SmartFormat.Extensions
    Syntax
    [Serializable]
    [Obsolete("Please use PersistentVariablesSource instead (UnityUpgradable) -> PersistentVariablesSource")]
    public class GlobalVariablesSource : PersistentVariablesSource, ISource, IDictionary<string, VariablesGroupAsset>, ICollection<KeyValuePair<string, VariablesGroupAsset>>, IEnumerable<KeyValuePair<string, VariablesGroupAsset>>, IEnumerable, ISerializationCallbackReceiver

    Constructors

    GlobalVariablesSource(SmartFormatter)

    Creates a new instance of the source,

    Declaration
    public GlobalVariablesSource(SmartFormatter formatter)
    Parameters
    Type Name Description
    SmartFormatter formatter
    In This Article
    • Constructors
      • GlobalVariablesSource(SmartFormatter)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023