Tab
[Tab]
attribute used for layout properties in specific tabs.
Support Types
Any types.
Parameters
Parameter Name | Description |
---|---|
Name |
Name target tab group. |
Title |
Title of tab |
Examples
[Tab("Tab Group 1", "Tab 1")]
public float value1;
[Tab("Tab Group 1", "Tab 1")]
public float value2;
[Tab("Tab Group 1", "Tab 2")]
public float value3;
[Tab("Tab Group 1", "Tab 2")]
public float value4;
Note
Make sure that you have added ApexInspector namespace in your script, to get access to all attributes.
using ApexInspector;
Demo
using ApexInspector;
using UnityEngine;
public class ExampleComponent : MonoBehaviour
{
[Tab("Tab Group 1", "Tab 1")]
public float value1;
[Tab("Tab Group 1", "Tab 1")]
public float value2;
[Tab("Tab Group 1", "Tab 2")]
public float value3;
[Tab("Tab Group 1", "Tab 2")]
public float value4;
}
Live demo