Spajk Posted November 4, 2013 Posted November 4, 2013 Whats better, guiSetVisible or destroying and recreating?
pa3ck Posted November 5, 2013 Posted November 5, 2013 It depends. If you're making an admin panel or something like that, which creates rows with the players then destroying and recreating would be better.
Tete omar Posted November 5, 2013 Posted November 5, 2013 Destroying and recreating is kinda laggy so i'd go with guiSetVisible.
Cadu12 Posted November 5, 2013 Posted November 5, 2013 Destroying and recreating is kinda laggy so i'd go with guiSetVisible. No, I prefer destroy and recreate.
Ab-47 Posted November 5, 2013 Posted November 5, 2013 Destroy and recreate would be a pain in the ass if you're using an admins panel, imagine you're on another tab, destroy the tab and recreate and you want that same tab back, the tab will go back to the first tab. For i.e; your first tab = information, second tab are reports, you hide and open the panel the tab will be switched back to the first tab. guiSetVisible is much better imo. However so, destroying and recreating 'could' be more useful in various occasions.
denny199 Posted November 5, 2013 Posted November 5, 2013 This actually depends in a situation, like for example a login GUI, you don't need it again later in the game, so you can destroy it, a admin panel for example will be a pain in the ass for recreating it the whole time. So it really depends on what you are trying to make.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now