- Home /
uGUI WorldSpace elements part of GameObjects
Can uGUI world space elements be part of gameobjects?
Answer by HarshadK · Oct 30, 2014 at 10:41 AM
Yes. You can set your world space uGUI elements to be a child of your game object.
They must be children of a canvas to render. But the canvas can be a child of a GameObject.
Then you'd need N canvas elements for N gameobject's that each contain a worldspace GUI element?
Yes. Each needs a canvas to render. For world space UI elements this actually makes sense, as they won't all fall on the same plane.
For screen or camera space elements you can always fake it by following the GameObject around via script.
@ina If your canvases have similar elements in them you do not necessarily need N canvases for N game objects. You can even use object pooling with canvases since they are game objects itself in the end.
Your answer
Follow this Question
Related Questions
uGUI WorldSpace elements part of GameObjects 0 Answers
uGUI text field set focus 0 Answers
uGUI button text color changes on mouseover 1 Answer
uGUI SelectionGrid 0 Answers