MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / SetItems

Method SetItems

Source/Engine/UI/GUI/Common/Dropdown.cs:441–447  ·  view source on GitHub ↗

Sets the items. The items.

(IEnumerable<string> items)

Source from the content-addressed store, hash-verified

439 /// </summary>
440 /// <param name="items">The items.</param>
441 public void SetItems(IEnumerable<string> items)
442 {
443 SelectedIndex = -1;
444 _items.Clear();
445 foreach (var item in items)
446 _items.Add(item);
447 }
448
449 /// <summary>
450 /// Called when selected item index gets changed.

Callers

nothing calls this directly

Calls 2

ClearMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected