TabDialog.AddTab
Declaration#
public void AddTab(Sprite icon, string text, string tooltip, GameObject controls)Parameters#
| Name | Description |
|---|---|
| icon | Icon to display |
| text | Text to display |
| tooltip | Tooltip to display |
| controls | GameObject to display |
Description#
Add a new tab
Usage#
Example
using NullSave.GDTK.UIPro;using UnityEngine;
public class Example : MonoBehaviour{ public void ExampleMethod(TabDialog target, GameObject other) { target.AddTab(null, "No Icon", "My Tooltip", other); }}