public bool RemoveAttachment(EditorSceneElementAttachment to_remove) { if (attachments.Remove(to_remove) | surpressed_attachments.Remove(to_remove)) return true; return false; }
protected override bool HandleAttachment(ref EditorSceneElementAttachment attachment) { if (element != null) { element.AddAttachment(attachment); } return(false); }
public void AddAttachment(EditorSceneElementAttachment to_add) { if (to_add != null) { if (to_add.PrepareElementForAttachment(this)) { if (HandleAttachment(ref to_add)) attachments.Add(to_add); else surpressed_attachments.Add(to_add); } } }
protected virtual bool HandleAttachment(ref EditorSceneElementAttachment attachment) { return true; }