- Home /
Two Unity GUI questions
Is there a way to parent GUI.Buttons/GUI.Boxes to an armature with an animation on it or turn them into GUITextures so that I can parent them with an armature?
Is there a way to 'mask' GUI?
What I want to achieve is expressed in this image:
https://picasaweb.google.com/109558729139769464910/Mar122011#5583270749512512370
Answer by AngryOldMan · Mar 13, 2011 at 02:22 AM
try drawing the button then on click get it transform across the screen. No animation involved just scripting
Answer by Statement · Mar 13, 2011 at 03:50 AM
- If you want a GUI object to "follow" a transform you can use Camera.WorldToScreenPoint to get screen coordinates for that transforms position.
- Use GUI.BeginGroup and GUI.EndGroup. It will clip content outside of the group.
Your answer
Follow this Question
Related Questions
Draw GUI texture from it's center point. 2 Answers
How do I add NPCs? 2 Answers
Created Animations only play half within Animator 0 Answers
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Airlock Door Code Problems [Solved] 1 Answer