I’m working on a scene and for some reason a sprite keeps appearing at a random location.
It’s not a gameobject, it’s not listed in in the hierarchy, and I can’t select it by clicking it, so I haven’t yet found a way to properly remove it.
I’ve managed to somewhat work around it by shuffling around and renaming sprites in my spritesheet but it’s reappeared twice and is quite a nnoying.
I only have four scripts in this project and they’re all just doing trivial game logic stuff - nothing that could be rendering things in weird places.
It persists in play mode and in exports also.
I’ve attached a screenshot of my sprite, the hierarchy, and the ghost sprite after a ‘ctrl-a’.
I’m using Unity 5.3.3f1 on Ubuntu 14.04 x86_64
I’ve had something similar with loading models into scenes every so often t will load a ghost to the left. Though it was my models but then happened on shooter tutorial.
They don’t show on hierarchy, but when I restarted the project they popped up and I was able do delete. Very strange. I’m using Lubuntu with and priority drives.
Cltr+A (select all) then Ctrl+C (copy everything selected)
Then supr to delete everything and the ctrl+v to paste everything back… This will leave out of the pasting process the unwanted ghosts.
Having the same problem, but none of the above solutions work. I’ve had this issue with all versions of Unity released on Linux. I haven’t tried importing the project on a Windows/Mac machine since I don’t have easy access to one. Below is a video I took me me selecting and then deleting all the game objects, but the ghost objects remain.
The objects persist only in this scene. If I open another scene they do not show up, but closing Unity and re-opening the original scene they come back, so it must be being stored in the scene and not just a temporary glitch in rendering.
The ghost objects remain in the scene even when in game mode.
Hello, suffering from this bug as well. The bug happens to me when I create a new animation by dragging multiple sprites in the scene. Attached is the Unity Scene file, as text file because “.unity” is not allowed.
I have managed to find a way to reliably reproduce the problem on my machine. If I drag an asset over the Scene View and drop it, it works as expected and creates just the sprite. However, if I drag the asset over the scene view, then out of the scene view and drop it (into the properties panel or overview panel) it leaves behind the ghost sprite.
I imagine it is the “helper” sprite that is being added to the scene view for previewing it before dropping it and making it an actual game object. Normally when you drop the asset in the scene view, it would remove the helper sprite when it creates the game object. But if you drop it outside the scene view, it doesn’t create the game object, and doesn’t remove the helper sprite.
After the helper ghost sprite has been added to the scene, if you drag another copy of the asset into the scene, the helper reattaches to the cursor and you can drop it again to become a real game object. However, if you save the scene while there is a ghost helper and restart unity, dragging a new copy of the asset into the scene doesn’t re-attach the ghost helper to the cursor, it creates a new one, leaving the original ghost helper completely abandoned with no way to get rid of it.
If you create the ghost helper, save the scene, and just re-open the scene without restarting Unity, the helper sprite seems to never be created again and the console has the error of “MissingReferenceException: The object of type ‘GameObject’ has been destroyed but you are still trying to access it.”
Below is a video of me dragging the asset into the scene to create the ghost sprite and re-gaining control of the ghost sprite.
Can confirm on Antergos, Gnome, Unity 5.6.0xb1Linux.
As @SilverCode says, ghosts appear when I try drag and move object into hierarchy and move it above the 2D window preview.
I can confirm on Unity 5.5.0xf3Linux as well.
And what makes it even worse is that it even remains if you close and re-start Unity again.
More annoyingly: it’s supposed to be a game for the Nintendo 3DS, which I edit on Linux so I can then only use Windows to do some final testing and to export it to the Nintendo 3DS itself.
I know this is old now but I was having the same issue and restarting unity fixed it but I still came here to see what caused it. Just happened to be exactly what you said. Not doing that anymore, thanks!