Check out example codes for "unity add sections to a list". It will help you in understanding the concepts better.
Code Example 1
using UnityEngine;public class Example : MonoBehaviour
{
[Header("Health Settings")]
public int health = 0;
public int maxHealth = 100; [Header("Shield Settings")]
public int shield = 0;
public int maxShield = 0;
}
Learn ReactJs, React Native from akashmittal.com