internal void RenameOption(DropDownMultiSelectOption data, string arg0) { if (data.name != arg0) { OnOptionRenamed.Invoke(data.name, arg0); } }
private void OnAdd(string name) { var option = new DropDownMultiSelectOption(); option.name = name; options.Add(option.name, option); AddOptionToDropDown(option); }
private void AddOptionToDropDown(DropDownMultiSelectOption option) { option.parent = this; option.gameObject = Instantiate(template); option.gameObject.SetActive(true); option.gameObject.transform.SetParent(scrollViewContent.transform, false); option.behaviour = option.gameObject.GetComponent <DropDownMultiSelectOptionBehaviour>(); option.behaviour.data = option; option.behaviour.UpdateWithData(); }
public void DeleteOption(DropDownMultiSelectOption option) { OnOptionRemoved.Invoke(option.name); }