Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

Show private fields in Unity Inspector

    //Public variable would show in inspector
    public float Bilal = 5;
    [SerializeField]
    //Private variable would not be shown in Inspector untill[SerializeField] assigned
    private float Iqbal = 5;
 
PREVIOUS NEXT
Tagged: #Show #private #fields #Unity #Inspector
ADD COMMENT
Topic
Name
4+2 =