Vanishing Texture

I have a texture assigned to an object in the inspector. This object is the child of another object which is set to to DoNotDestroy. Both objects survive the loading of a new scsne apart from one texture variable which becomes ‘missing’.

Why is this?

I checked the code and I am not removing the texture anywhere. ANy ideas?

Well it turned out that the textures were referenced from another object which was destroyed on scene load.

I had thought that once I was to say myTexture=otherObjectsTexture then the object with myTexture would retain that texture even when the otherObject was destroyed.

I was wrong.