|
Hi, I'm trying to create GUITextures on the fly but I keep on getting this error -> "Can't add component 'GUITexture' to something different because such a component is already added to the game obejct!" Here is an example of test code what I'm trying to accomplish
the error appears when gameObject adds a component the second time. I don't really understand because you can attach many GUITextures components through the editor? I would really appreciate if some one could possibly explain to me why this does not work. Kind Regards
(comments are locked)
|
|
You can't add multiple GUITextures to a single GameObject in the editor either If you're doing GameObject > Create Other > GUI Text, it's creating a new GameObject each time What you could do is something like this: Ahh i see, because through the editor, when you create a GUITetxure the are already assigned to a game object. Duh, that makes sense. thanks for the answer Mike :)
Dec 05 '10 at 12:19 PM
user-7110 (google)
(comments are locked)
|
