[Array]
Support Types
Type
Example
Description
Parameters
Parameter Name
Arguments
Description
Examples
using System.Collections.Generic;
using UnityEngine;
using RenownedGames.Apex;
public class ArrayExample : MonoBehaviour
{
[Array]
public int[] simpleArray;
[Array(OnAdd = "OnAddCallback", OnRemove = "OnRemoveCallback")]
public List<string> callbackList;
[Array(NoneElementText = "No elements in list")]
public float[] customTextArray;
private void OnAddCallback(SerializedProperty array, int index)
{
Debug.Log($"Added element at index {index}");
}
private void OnRemoveCallback(SerializedProperty array, int index)
{
Debug.Log($"Removing element at index {index}");
}
}Last updated