Skip to content

Hide Script Field

[HideScriptField] attribute used for hiding default script reference field of component.


Support Types

Any components


Parameters

No parameters


Examples

[HideScriptField]
public class ExampleComponent : MonoBehaviour
{
    // Script content...
}
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;

[HideScriptField]
public class ExampleComponent : MonoBehaviour
{
    public int value;
}

Static-demo

Static demo