private void ClearStyleProperties() { foreach (var property in StyleProperties) { ComponentPool.Free(property); } StyleProperties.Clear(); }
private void RemoveRulePanel(RulePanel rulePanel) { if (HoverRulePanel == rulePanel) { HoverRulePanel = null; } ComponentPool.Free(rulePanel); }
public virtual void DeInit() { var components = this.components.ToArray(); foreach (var component in components) { ComponentPool.Free(component); } }
private void RemovePreview() { if (Preview == null) { return; } ContentPanel.opacity = 1f; ComponentPool.Free(Preview); Preview = null; }
public void RemovePreview() { if (Preview == null) { return; } Editor.AvailableContent = true; ComponentPool.Free(Preview); Preview = null; }
private void ReloadAdditionalProperties() { if (Aditional != null) { foreach (var aditional in Aditional) { ComponentPool.Free(aditional); } } Aditional = AddAditionalProperties().ToArray(); }
public override void DeInit() { base.DeInit(); Data = null; IsEnableGetter = null; Items.Clear(); foreach (var component in Content.components.ToArray()) { ComponentPool.Free(component); } }
protected override void DeleteItem(ItemType item) { var group = GetGroup(item.Object, false); base.DeleteItem(item); if (group?.IsEmpty == true) { group.Item.eventMouseEnter -= GroupHover; group.Item.eventMouseLeave -= GroupLeave; Groups.Remove(group.Selector); ComponentPool.Free(group); } }
private void DeleteAddButton() { ComponentPool.Free(AddButton); AddButton = null; }