Next: , Previous: , Up: Interaction.Input   [Contents][Index]


9.1.11 MultiMenu

Component: MultiMenu

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.

Field of MultiMenu: bool asWindow

If 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

Field of MultiMenu: Rect screenArea

Normalized viewport rectangle designating the screen area for the menu, values between 0 and 1

Default value: new Rect(.3f,.3f,.3f,.3f)

Field of MultiMenu: bool showGui

Should the menu be currently visible?

Default value: false

Field of MultiMenu: bool closeOnSelect

Should the menu close as soon as you click something?

Default value: true

Field of MultiMenu: string infoText

What sort of text prompt do we need?

Field of MultiMenu: Texture2D image

Would you like to display an image, like an illustration or character portrait?

Field of MultiMenu: Vector2 maxImageSize

What 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

Message on MultiMenu: OpenMenu ()

Opens the IMGUI

Message on MultiMenu: CloseMenu ()

Closes the IMGUI

Message on MultiMenu: ToggleMenu ()

Toggles the IMGUI

Field of MultiMenu: bool asWindow

If 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

Field of MultiMenu: Rect screenArea

Normalized viewport rectangle designating the screen area for the menu, values between 0 and 1

Default value: new Rect(.3f,.3f,.3f,.3f)

Field of MultiMenu: bool showGui

Should the menu be currently visible?

Default value: false

Field of MultiMenu: bool closeOnSelect

Should the menu close as soon as you click something?

Default value: true

Field of MultiMenu: string infoText

What sort of text prompt do we need?

Field of MultiMenu: Texture2D image

Would you like to display an image, like an illustration or character portrait?

Field of MultiMenu: Vector2 maxImageSize

What 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

Message on MultiMenu: OpenMenu ()

Opens the IMGUI

Message on MultiMenu: CloseMenu ()

Closes the IMGUI

Message on MultiMenu: ToggleMenu ()

Toggles the IMGUI


Next: , Previous: , Up: Interaction.Input   [Contents][Index]