Skip to content

Scene Object Only

[SceneObjectOnly] The attribute checks that the Object you want to add to the field is in scene.


Support Types

All object types.


Parameters

No parameters


Examples

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

Live-demo

Live demo