Hello there,
after creating a player prefab following the steps of Chris' 2D primer video, the player sprite does not show in the prefab editor preview.
I get an empty area.
As supposed to the preview in the primer tutorial video:
Here are the basic player object settings:
I have no issues inside the game with anything else, it all works great and the player is displayed correctly.
Why is this happening?
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
As in, it appears in-game when in Play mode, but not when editing the prefab?
Clear the rotation values of the root object, "Chicken Player", to (0,0,0).
If it doesn't show after that, check the zoom level by pressing Shift+F in the Scene window with "Chicken Sprite" selected to focus on it.
The size of the sprite's presence in the scene will be based on the asset's "Pixels Per Unit" setting in its Inspector - what are the sprite's dimensions, and what is this set to?
-As in, it appears in-game when in Play mode, but not when editing the prefab?
Yes.
Shift + F did the trick, thank you so much, @ChrisIceBox
The original asset image size is 728x717 and the PPU 100. The Unity sprite object is scaled 0.8154x0.8154x0.8154.
For AC's default movement values, your sprite ought to appear roughly comparable to Brain's sprite when placed in a scene. Brain is roughly 2.5 units tall.
You can increase a sprite's appearance in the scene by reducing its Pixels Per Unit.
I did have to change the walking speed values, because by default they were too slow. So I assume had I set the adjusted Pixels per Unit, I could have left the default speed values.
Thank you very much for the tips.