Class DictionaryAsset
Implements
Inherited Members
Namespace: Unity.VisualScripting
Assembly: Unity.VisualScripting.Core.dll
Syntax
[IncludeInSettings(false)]
public sealed class DictionaryAsset : LudiqScriptableObject, ISerializationCallbackReceiver, IDictionary<string, object>, ICollection<KeyValuePair<string, object>>, IEnumerable<KeyValuePair<string, object>>, IEnumerable
Properties
Count
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
int |
this[string]
Declaration
public object this[string key] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
string | key |
Property Value
Type | Description |
---|---|
object |
Keys
Declaration
public ICollection<string> Keys { get; }
Property Value
Type | Description |
---|---|
ICollection<string> |
Values
Declaration
public ICollection<object> Values { get; }
Property Value
Type | Description |
---|---|
ICollection<object> |
dictionary
Declaration
[Serialize]
public Dictionary<string, object> dictionary { get; }
Property Value
Type | Description |
---|---|
Dictionary<string, object> |
Methods
Add(string, object)
Declaration
public void Add(string key, object value)
Parameters
Clear()
Declaration
public void Clear()
ContainsKey(string)
Declaration
public bool ContainsKey(string key)
Parameters
Type | Name | Description |
---|---|---|
string | key |
Returns
Type | Description |
---|---|
bool |
GetEnumerator()
Declaration
public IEnumerator<KeyValuePair<string, object>> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<Key |
Merge(DictionaryAsset, bool)
Declaration
public void Merge(DictionaryAsset other, bool overwriteExisting = true)
Parameters
Type | Name | Description |
---|---|---|
Dictionary |
other | |
bool | overwriteExisting |
OnAfterDeserialize()
Declaration
protected override void OnAfterDeserialize()
Overrides
Remove(string)
Declaration
public bool Remove(string key)
Parameters
Type | Name | Description |
---|---|---|
string | key |
Returns
Type | Description |
---|---|
bool |
ShowData()
Declaration
[ContextMenu("Show Data...")]
protected override void ShowData()
Overrides
TryGetValue(string, out object)
Declaration
public bool TryGetValue(string key, out object value)
Parameters
Returns
Type | Description |
---|---|
bool |