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

DictionaryIgnoredEntries.duplicateEntryIndices

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

public int[] duplicateEntryIndices;

Description

The serialized array indices of the duplicate-key rows that Unity could not merge into the live dictionary.

When the same key appears more than once in the serialized data, Unity keeps the first occurrence in the runtime Dictionary and lists the positions of the remaining rows here. The indices are positions in the dictionary's underlying serialized array of key/value pairs, in insertion order, and are stable across Inspector re-sorts because they reference the serialized array rather than the displayed row order. This array is empty when the dictionary has no duplicate-key rows.