Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

VariablesGroupAsset

class in Unity.SmartStrings.PersistentVariables

/

Inherits from:ScriptableObject


Implements interfaces:ISerializationCallbackReceiver, IVariable, IVariableGroup

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Collection of IVariable that can be used during formatting of a localized string.

Properties

Property Description
Count The number of variables in the group.
IsReadOnly Implemented as part of IDictionary but not used. Always returns false.
Keys A collection of all the unique variable names.
this[string] The IVariable associated with the specified name.
Values All the variables in this group.

Public Methods

Method Description
Add Adds a new Global Variable to use during formatting.
Clear Removes all variables in the group.
Contains
ContainsKey Returns true if a variable with the specified name exists.
CopyTo Copies the variables into an array starting at arrayIndex.
GetEnumerator Returns an enumerator for all variables in this group.
Remove Removes a variable with the specified name.
TryGetValue Gets the IVariable with the specified name.

Inherited Members

Properties

PropertyDescription
hideFlagsShould the object be hidden, saved with the Scene or modifiable by the user?
nameThe name of the object.

Public Methods

MethodDescription
GetEntityIdGets the EntityId of the object.
ToStringReturns the name of the object.

Static Methods

MethodDescription
DestroyRemoves a GameObject, component, or asset.
DestroyImmediateDestroys the specified object immediately. Use with caution and in Edit mode only.
DontDestroyOnLoadDo not destroy the target Object when loading a new Scene.
FindAnyObjectByTypeRetrieves any active loaded object of Type type.
FindObjectsByTypeRetrieves a list of all loaded objects of Type type.
InstantiateClones the object original and returns the clone.
InstantiateAsyncCaptures a snapshot of the original object (that must be related to some GameObject) and returns the AsyncInstantiateOperation.
CreateInstanceCreates an instance of a scriptable object.

Operators

OperatorDescription
boolDoes the object exist?
operator !=Compares if two objects refer to a different object.
operator ==Compares two object references to see if they refer to the same object.

Messages

MessageDescription
AwakeCalled when an instance of ScriptableObject is created.
OnDestroyThis function is called when the scriptable object will be destroyed.
OnDisableThis function is called when the scriptable object goes out of scope.
OnEnableThis function is called when the object is loaded.
OnValidateEditor-only function that Unity calls when the script is loaded or a value changes in the Inspector.
ResetReset to default values.