This version of Unity is unsupported.

HideFlags.DontSaveInBuild

Description

The object will not be saved when building a player.

You must manually clear the object from memory using DestroyImmediate to avoid memory leaks.