DialogPool Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
[UnityEngine.AddComponentMenu("MRTK/UX/Dialog Pool")]
[UnityEngine.ExecuteAlways]
public class DialogPool : UnityEngine.MonoBehaviour
[<UnityEngine.AddComponentMenu("MRTK/UX/Dialog Pool")>]
[<UnityEngine.ExecuteAlways>]
type DialogPool = class
inherit MonoBehaviour
Public Class DialogPool
Inherits MonoBehaviour
- Inheritance
-
UnityEngine.MonoBehaviourDialogPool
- Attributes
-
UnityEngine.AddComponentMenuAttribute UnityEngine.ExecuteAlwaysAttribute
Constructors
| Name | Description |
|---|---|
| DialogPool() | |
Properties
| Name | Description |
|---|---|
| DialogPrefab |
The default prefab to instantiate when spawning a dialog. This prefab must contain a IDialog component. |
Methods
| Name | Description |
|---|---|
| Get(DialogPool+Policy, GameObject) |
Retrieves or creates a new dialog instance. Specify a |
| OnValidate() |
A Unity Editor only event function that is called when the script is loaded or a value changes in the Unity Inspector. |