Class DictionaryAsset
Inherited Members
Namespace: Unity.VisualScripting
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 |
---|---|
Int32 |
dictionary
Declaration
[Serialize]
public Dictionary<string, object> dictionary { get; }
Property Value
Type | Description |
---|---|
Dictionary<String, Object> |
Item[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> |
Methods
Add(String, Object)
Declaration
public void Add(string key, object value)
Parameters
Type | Name | Description |
---|---|---|
String | key | |
Object | value |
Clear()
Declaration
public void Clear()
ContainsKey(String)
Declaration
public bool ContainsKey(string key)
Parameters
Type | Name | Description |
---|---|---|
String | key |
Returns
Type | Description |
---|---|
Boolean |
GetEnumerator()
Declaration
public IEnumerator<KeyValuePair<string, object>> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<KeyValuePair<String, Object>> |
Merge(DictionaryAsset, Boolean)
Declaration
public void Merge(DictionaryAsset other, bool overwriteExisting = true)
Parameters
Type | Name | Description |
---|---|---|
DictionaryAsset | other | |
Boolean | 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 |
---|---|
Boolean |
ShowData()
Declaration
[ContextMenu("Show Data...")]
protected override void ShowData()
Overrides
TryGetValue(String, out Object)
Declaration
public bool TryGetValue(string key, out object value)
Parameters
Type | Name | Description |
---|---|---|
String | key | |
Object | value |
Returns
Type | Description |
---|---|
Boolean |