編輯

共用方式為


DialogButton Class

Definition

Handling click event and dismiss dialog

public ref class DialogButton : UnityEngine::MonoBehaviour
public class DialogButton : UnityEngine.MonoBehaviour
type DialogButton = class
    inherit MonoBehaviour
Public Class DialogButton
Inherits MonoBehaviour
Inheritance
UnityEngine.MonoBehaviour
DialogButton

Constructors

DialogButton()

Fields

ButtonTypeEnum

The type description of the button

Properties

ButtonText
ParentDialog

A reference to the Dialog that this button is on.

Methods

OnButtonClicked(GameObject)

Event handler that runs when button is clicked. Dismisses the parent dialog.

SetTitle(String)

Setter method to set the text at the top of the Dialog.

Applies to