OnValidate is called when Scene is loaded.
When we build players, we also first load the scenes in the Editor to know what Assets are used so we only copy what is needed.
OnValidate are only called in the Editor, so thats why the `#if UNITY_EDITOR` do not exclude ty8s c