Search Unity

Public variables not showing up in inspector.

Discussion in 'Editor & General Support' started by Dabonez, Sep 19, 2017.

  1. Dabonez

    Dabonez

    Joined:
    Feb 6, 2016
    Posts:
    6
    Hey guys,

    I had been using Unity 4 for a couple hundred hours, so I'm not a complete newbie.
    Recently I switched to Unity 5, and I am having very inconsistent results about public variables showing up in the inspector. There are no errors in the code, the component is attached to a gameobject, I am definitely savin the file inbetween, yet it won't show up in the inspector. I just made a test file, only declaring a public variable, nothing shows up. I declare 10 different public variable, the compiler takes a moment, not a single one shows up. Then I go back to VS, comment out/delete some of them, bam, the remaining ones show up.

    Considering the complexity a software project can take, I need to trust the tool of choice to do as it is told.
    Does anyone have any idea what could be causing this? Similar experiences? I would prefer not manually serializing every public variable.

    Thanks in advance and kind regards,
    David