unity-notnullattribute
unity-notnullattribute copied to clipboard
When meta file of referenced object is destroyed, then restored (through like git checkout --), the asset is rewired in the inspector, but RequireWire still reports it missing.
Repro Steps: 1. Build an asset with a RequireWire field for a GameObject 2. Link a Prefab into the game object 3. Check both into source control (try without this step first, though.) 4. Run Require Wire. Should pass. 5. Delete the linked prefab. 6. Run Require Wire. Should fail. 7. Restore the linked prefab from the trash or through git checkout -- 8. Run Require Wire. Fails but should pass.
Rebooting Unity seems to fix this. Or rewiring the component (after nulling it out)