Game Object appears in Scene, Game View and Play mode but not in executable.

Created a game object in a scene. It was displayed in Scene View and Game View. Started Play Mode and the
scene with the object were viewable. Compiled the program and started the execuatble. The game object did not appear. Any suggestions ?

Make sure it’s not tagged as EditorOnly, as that would be exactly the resulting behaviour.

Thank you for your prompt reply. It is ‘Untagged’ so this is not issue.

Then perhaps there’s a script destroying or moving it if run outside the editor? You can try posting relevant code snippets if you need help with those.

Check the player log. You may have errors which explain the issue.

I checked the log. It did have some errors that were unrelated to this Game Object.
I spent a few hours on this problem and it turned out to be something very basic.
There was another scene with a similar name that was included in the build. The scene I was editing
was not listed. Therefore, when a entered the Play Mode everything looked right but in the build
the other scene was being displayed.