You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When working with a GameObject with 2D Sprite Component, the 2D Sprite's position in the editor does not match the GameObjects position. Instead, the 2D Sprite stays in the same position it was initially placed. What's more odd is that if you move the GameObject around while in the editor and then press ctrl + z, the sprite will jump to the gameobjects position.
To Reproduce
Create new project
Go to Library Manager
Install Sprite Tools
In the Hierarchy, create a new empty GameObject and name it 'Player'
In the inspector for the 'Player' click Add Component and select 2D Sprite Component
Under 2D Sprite Component, click Sprite which will open a pop-up window
In the pop-up window, select Cloud > Everything > Sprite > Citizen Test Sprite
Move the GameObject named 'Player' around in the editor a few times
Press Ctrl+z and you'll see the sprite will finally appear in the same location as the GameObject
Expected behavior
The expected behavior is that the 2D Sprite position will match the GameObject's position when the GameObject is moved.
Media/Files
2DSpriteBugDemo.mp4
In the video, I have a GameObject named goo setup with a 2D Sprite Component and set the Sprite to a custom made image. I switch the camera from 3D to 2D Top Down. Then I move the GameObject with the 2D Sprite Component, and you'll notice that the sprites position does not update with the GameObjects position until I start pressing Ctrl + Z.
Additional context
I am running Windows 10.
The text was updated successfully, but these errors were encountered:
Is this still happening for you @NPVallejos? I cannot seem to replicate it.
Can you send a zipped repro project following the steps you explain (since they do not replicate it for me)
Describe the bug
When working with a GameObject with 2D Sprite Component, the 2D Sprite's position in the editor does not match the GameObjects position. Instead, the 2D Sprite stays in the same position it was initially placed. What's more odd is that if you move the GameObject around while in the editor and then press ctrl + z, the sprite will jump to the gameobjects position.
To Reproduce
Expected behavior
The expected behavior is that the 2D Sprite position will match the GameObject's position when the GameObject is moved.
Media/Files
2DSpriteBugDemo.mp4
In the video, I have a GameObject named goo setup with a 2D Sprite Component and set the Sprite to a custom made image. I switch the camera from 3D to 2D Top Down. Then I move the GameObject with the 2D Sprite Component, and you'll notice that the sprites position does not update with the GameObjects position until I start pressing Ctrl + Z.
Additional context
I am running Windows 10.
The text was updated successfully, but these errors were encountered: