uitoolkit slide out menu? (made for mobile but taking all ideas, except for OnGUI calls)

I am curious how i would go about making a UiToolkit slide out menu, and then having the buttons be dynamic? I cannot destroy the buttons as they arent objects, so the Destroy() unity method gives an error, and since they arent objects i thus cannot parent them. They can only be created at runtime, so i am kind of stumped.

How would i go about doing this?

Here is thier unity forums post:

Hey, I know it’s been a while since you asked but I have been using UIToolkit for a couple days so I might be able to help a bit if you still need it. Just to clarify, what do you mean by a slide out menu? A menu that slides on screen from the side of a screen? If that’s what you want then I may be able to help.

You will want to put all of you buttons,toggles, etc for your main menu in a container such as UIHorizontalLayout. Then you could simple create the layout/panel off screen and slide it onto the screen using one of the animation methods like positionTo().

Does that help at all?