On this pageUIMenu.destroyOnClosepublic bool destroyOnClose { get; set; }CopyDescription#Gets/Sets if this object should destroy itself on close.Usage#ExamplesampleObject.destroyOnClose = true;Copy