Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Locked Transform on Hexagonal Rule Tiles #250

Open
Eyonex opened this issue Nov 26, 2020 · 2 comments
Open

Locked Transform on Hexagonal Rule Tiles #250

Eyonex opened this issue Nov 26, 2020 · 2 comments

Comments

@Eyonex
Copy link

Eyonex commented Nov 26, 2020

Hello, I do not know if it is supposed to be like this but the tile transform flag is locked on rule tiles.

1

I am trying to do a small animation where the tile slightly changes its offset with the Tilemap.SetTransformMatrix when clicked. Normal tiles work fine but the hexagonal rule tile I am using to create the rocky edges can't be moved since the transform flag is locked and I can't seem to find any way to unlock it.

2

Do you know if I'm doing something wrong or is there a way to unlock the transform?

@ChuanXin-Unity
Copy link
Collaborator

ChuanXin-Unity commented Nov 27, 2020 via email

@Eyonex
Copy link
Author

Eyonex commented Nov 27, 2020

Hi, for this, you may want to use Tilemap.Add/RemoveTileFlags API with the TileFlag.LockTransform. This will allow you to adjust the transform matrix for the Tile at a position. Hope this helps!

Yes, thank you so much!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants