I have a bug, where what the inspector says and what the gameview shows, seem to be completely different entities.
I have a ISystem MovingEntitySystem, which, in update:
- If a click was detected, sets the target position on all movable entities
- Calls the "move entity towards target" function on all movable entities
those two are done in 2 separate jobs.
I have 4 entities on screen. But they merge into one pretty fast, because I give them all the same target position every time. The 4 on-screen entities and the 4 inspector entities behave in the same way, always.
All nice and great, but, as per the video, my right clicks don't really do... what's expected. It seems like it EITHER is sent to the entities that are "on screen", or to the entities that are in the inspector. Sometimes, the "entity hierarchy entities" (that I can view and access through the inspector) react to my clicks, but sometimes it's the on-screen entities that I can see.
Clicks seem to be distributed between them randomly. You can see in the video, that sometimes when I click the inspector, the target updates and position starts changing, and sometimes when I click, the entities on screen move, while the ones in the inspector casually complete their own move to their previous destination, and stop moving while the ones on screen are still moving to the next one.
Inputs always seem to go either to the on-screen entities, or the inspector entities, that I can access through entity hierarchy.
All packages are up to date, and I don't have anything weird installed. This is pretty much a fresh project. Freshest unity version, 6000.0.2f1, although 6000.0.0 had the same bug.
Please help. I am going crazy. What could it even be??? Please give me any idea.