public string GetTypeNameByType(EVideoSettingType type) { string res = string.Empty; _typeNameDict.TryGetValue(type, out res); return(res); }
private void InitOption(EVideoSettingType key, HashSet <VideoSetting> typeListForThisKey) { var textModel = GameObject.Instantiate(_textModel, _parentRoot); var title = VideoSettingManager.GetInstance().GetTypeNameByType(key); textModel.gameObject.SetActive(true); textModel.Find("Text").GetComponent <Text>().text = title; foreach (var config in typeListForThisKey) { InitControl(config); } }