Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Hi Seanba

I have a small question about the pivot point of the sprites when they are imported in Unity. We have a rock sprite and when it is imported in Unity, it looks like the pivot point is placed at the very bottom left. The problem is that we absolutely need to be able to change the position of that pivot point. We thought at first that changing the drawing offset in Tiled would also change the pivot, but it doesn't seem to work. Is there anyway to edit the pivot either in Tiled or in Unity (after importing everything)?

Hi there. SuperTiled2Unity puts the pivot point for Tile Objects at the bottom-left corner because that's what Tiled does.

If you need to manage the pivot point of a Tile Object then chances you want to control or manage other aspects of the object. In other words, it's now longer just a decorative tile on your level somewhere but tied into gameplay somehow.

In that case I'd recommend keeping your Tile Object in Tiled but use a "Prefab Replacement" so that those objects are replaced by a "proper" sprite (or some other object) that you have scripting control over.

You can read about Prefab Replacements in SuperTiled2Unity  here:
https://github.com/Seanba/SuperPrefabReplacement

Thank you! :)