void UpdateObjectsDropDown() { ObjectSelect.ClearOptions(); ObjectLoader objList = GameWorldController.instance.CurrentObjectList(); for (int i = 0; i <= objList.objInfo.GetUpperBound(0); i++) { if (objList.objInfo[i] != null) { string itemtext = ObjectLoader.UniqueObjectNameEditor(GameWorldController.instance.CurrentObjectList().objInfo[i]); ObjectSelect.options.Add(new Dropdown.OptionData(itemtext)); } } ObjectSelect.RefreshShownValue(); }