Skip to content

Asset Only

[AssetOnly] The attribute checks that the asset you want to add to the field is an asset from the project window.


Support Types

All asset types.


Parameters

No parameters


Examples

[AssetOnly]
public Object value;
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
{
    [AssetOnly]
    public GameObject someObject;
}

Live-demo

Live demo