public static AutoBundleRule CreateAutoBundleRule(string name) { AutoBundleRule set = (AutoBundleRule)Activator.CreateInstance(typeof(AutoBundleRule), true); set.Init(name); return(set); }
private void AddItem() { m_CurRule.sets.Add(AutoBundleRule.CreateAutoBundleRule(NewName())); m_SelectedID = m_CurRule.sets.Count - 1; serializedObject.ApplyModifiedProperties(); }