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

Question: Re-mapping tile art once in unity #21

Closed
abelnation opened this issue Dec 14, 2015 · 1 comment
Closed

Question: Re-mapping tile art once in unity #21

abelnation opened this issue Dec 14, 2015 · 1 comment

Comments

@abelnation
Copy link

I was reading the towerfall dev blog post about auto-tiling (http://towerfall.tumblr.com/post/98906957031/detailing-process-i-still-want-to-prototype-a-new).

I was curious if it's possible to use tiled2unity to create a mesh using some base tiles, which can then be mapped to different tile "themes" in unity. E.g. You could create 5 "theme" tilesheets, where each type of tile is in the same corresponding place in the tilesheet. I'm curious if I can swap out the underlying tile texture image once in unity to change the style of the tiles.

Thoughts? and Thanks! Love the tool

@Seanba
Copy link
Owner

Seanba commented Dec 14, 2015

Hi abelnation, yes, it should be trivial to change the material on a layer with just a bit of scripting. You may want to use a custom Tag on the layers you are interested in. Then you can search for each GameObject by its Tag, get a reference to the MeshRenderer on it, and then set the material on that mesh renderer.

@Seanba Seanba closed this as completed Jun 21, 2016
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