Dictionary<GameObject, Rect> windows = new Dictionary<GameObject, Rect>();
This is a awsome function, thankyou so much for showing it to me, trying to tear it apart so that I understand it better now, and I have run into a question or 5 billion,.
Please keep in mind I am a novice, So I know this probably sounds dumb, This function Works very well, However it just creates the buttons one of top of each other in the area I choose for my window to be, but there is no window, so i am unable to drag or re-size them, as they are not inside a window.
Also when the buttons are clicked, it opens a new window in the same spot of the first window, I don’t comprehend GUI to well, It seems to me, that if you create a gui function, you should be able to create and change, or destroy windows on the fly, but it seems every time I attempt to create more than 1 GUI.Window in a scene, It either completely erases the contents of the first window, or tries to jam the contents of the second window, inside the first. If i try to GUILayout End area, or end horizontal or vertical it erases the first window, so I don’t get it, I wish I could find a In depth GUI tutorial, as once i can understand a function, then its all good, but there is so much info on the net, and so many ways to do the same thing, and the wiki gives as little info as possible to still be called a wiki, not even any c# examples.
I apologize for asking so many Noob questions, I suffer from PTSD, so REALLY need Unity as a way to keep my mind occupied, I just need to understand these functions, spending 8 hours trying to get a script to print out Object Names, is really frustrating lol, So if there is anyone out there, who wouldn’t mind being annoyed, please let me know, I could write pages of questions, also if anyone knows of some clear cut, well explained tutorials, Videos would be best, as I think I have read about 5 billion pages on Unity functions, my eyes hurt, I would be very grateful,.
"Just a note, don’t use “GameObject.FindGameObjectsWithTag(“Planets”)” in your OnGUI! Please, cache it! "
I assume you mean run the FindGame tag somewhere else, if so, I am too much of a noob to get it to work anywhere else but inside OnGui, otherwise I cant get any of the return vales, In other words, I have yet to figure out how to pass the return value of FindGameTag to any other function, besides where I declare it, I mean I can pass it once, but dont know how to send the entire contents to another function yet, so I guess I am stuck using more memory than i should until i understand it all better.