Next: On Destruct, Previous: Mouse Message, Up: Interaction.Input [Contents][Index]
This is a generic implementation of Unity’s built-in GUI. Not suitable for mobile devices. To use, add this component to any object, assign some text, buttons, and perhaps an image. For each button, assign some messages for it to send to other components, to implement the desired selection into your game. You can also combine many MultiMenu components together using the MultiGame Toolbar to add each one, creating dialogue trees and multi-tiered menus.
bool
asWindowIf true, the menu will be displayed as a window. If false, it will be displayed in a layout box instead (to conserve screen space)
Default value: false
Rect
screenAreaNormalized viewport rectangle designating the screen area for the menu, values between 0 and 1
Default value: new Rect(.3f,.3f,.3f,.3f)
bool
showGuiShould the menu be currently visible?
Default value: false
bool
closeOnSelectShould the menu close as soon as you click something?
Default value: true
string
infoTextWhat sort of text prompt do we need?
Texture2D
imageWould you like to display an image, like an illustration or character portrait?
Vector2
maxImageSizeWhat is the maximum number of pixels we should take up with the image? If undefined, the image size itself will be used.
Default value: Vector2.zero
Opens the IMGUI
Closes the IMGUI
Toggles the IMGUI
bool
asWindowIf true, the menu will be displayed as a window. If false, it will be displayed in a layout box instead (to conserve screen space)
Default value: false
Rect
screenAreaNormalized viewport rectangle designating the screen area for the menu, values between 0 and 1
Default value: new Rect(.3f,.3f,.3f,.3f)
bool
showGuiShould the menu be currently visible?
Default value: false
bool
closeOnSelectShould the menu close as soon as you click something?
Default value: true
string
infoTextWhat sort of text prompt do we need?
Texture2D
imageWould you like to display an image, like an illustration or character portrait?
Vector2
maxImageSizeWhat is the maximum number of pixels we should take up with the image? If undefined, the image size itself will be used.
Default value: Vector2.zero
Opens the IMGUI
Closes the IMGUI
Toggles the IMGUI
Next: On Destruct, Previous: Mouse Message, Up: Interaction.Input [Contents][Index]