Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.

    Read our full announcement for more information and let us know if you have any questions.

Question Check SerializedFields for NULL before build

Discussion in 'Editor & General Support' started by Inno93, Nov 14, 2023.

  1. Inno93


    Oct 10, 2023
    I am sorry if this question is answered. I didn't found anything helpful.

    I habe a script "SceneManager" with a lot [SerializeField]s.
    I want to check if every field is added before i start building the app and stop it, if not.
    Is this possible?

    I found the possibility with " base.OnInspectorGUI();" but i didnt found, where to add this script. for that it get used.

    I thank you a lot for your support.
  2. CodeSmile


    Apr 10, 2014
    I would check that in Awake so you'd realize any missing references if you enter playmode. I'd expect changes to be first tested in playmode before making a build.