Eva
0
Q:

unity hide in inspector

public float notHidden; // Displayed
[HideInInspector] // Hides var below
public float hidden;
1
using UnityEngine;

public class Example : MonoBehaviour
{
    // Make the variable p not show up in the inspector
    // but be serialized.
    [HideInInspector]
    int p = 5;
}
0
[HideInInspector]
public float myVar;
0

New to Communities?

Join the community