public void DeleteProperty(UTConfigurableProperty property) { var prop = property as UTConfigurableProjectProperty; if (prop == null) { throw new ArgumentException ("Wrong property type."); } int idx = prop.index; List<string> namesList = new List<string> (propertyNames); namesList.RemoveAt (idx); propertyNames = namesList.ToArray (); List<UTString> valuesList = new List<UTString> (propertyValues); valuesList.RemoveAt (idx); propertyValues = valuesList.ToArray (); List<bool> isMachineSpecificList = new List<bool> (isMachineSpecific); isMachineSpecificList.RemoveAt (idx); isMachineSpecific = isMachineSpecificList.ToArray (); List<bool> isPrivateList = new List<bool> (isPrivate); isPrivateList.RemoveAt (idx); isPrivate = isPrivateList.ToArray (); EditorUtility.SetDirty (this); }
public void DeleteProperty(UTConfigurableProperty property) { var prop = property as UTConfigurableProjectProperty; if (prop == null) { throw new ArgumentException("Wrong property type."); } int idx = prop.index; List <string> namesList = new List <string> (propertyNames); namesList.RemoveAt(idx); propertyNames = namesList.ToArray(); List <UTString> valuesList = new List <UTString> (propertyValues); valuesList.RemoveAt(idx); propertyValues = valuesList.ToArray(); List <bool> isMachineSpecificList = new List <bool> (isMachineSpecific); isMachineSpecificList.RemoveAt(idx); isMachineSpecific = isMachineSpecificList.ToArray(); List <bool> isPrivateList = new List <bool> (isPrivate); isPrivateList.RemoveAt(idx); isPrivate = isPrivateList.ToArray(); EditorUtility.SetDirty(this); }
public static void DeleteProperty(UTConfigurableProperty property) { var prop = property as UTConfigurableEditorProperty; if (prop == null) { throw new ArgumentException("Illegal property type."); } properties.Remove(prop); PersistCaches(); }
public static void DeleteProperty(UTConfigurableProperty property) { var prop = property as UTConfigurableEditorProperty; if (prop == null) { throw new ArgumentException("Illegal property type."); } properties.Remove(prop); PersistCaches(); }