Skip to main content

TabDialog.AddTab

Declaration#

public void AddTab(Sprite icon, string text, string tooltip, GameObject controls)

Parameters#

NameDescription
iconIcon to display
textText to display
tooltipTooltip to display
controlsGameObject 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);    }}