Skip to content

Views

Property view attributes completely change how the property is drawing and how you interact with it.

Info

Each property can only have one property view.

Demo

Let’s create array of materials.

using UnityEngine;

public class ExampleComponent : MonoBehaviour
{
    public Material[] array;
}

Live-demo

Default array view

Let’s add [Array] attribute to array of materials.

Note

Make sure that you have added ApexInspector namespace in your script, to get access to all attributes.

using ApexInspector;

using ApexInspector;
using UnityEngine;

public class ExampleComponent : MonoBehaviour
{
    [Array]
    public Material[] array;
}

Live-demo

After adding [Array] attribute