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

Added function to pattern the name when there's multiple .pngs #67

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Junarox
Copy link

@Junarox Junarox commented Nov 19, 2021

resolve #66
I decided to implement a simple way to pattern the name of the file when there's multiple files to be generated.

Basically on the "Texture name" holder, now you can set a pattern for multiple sprites under 2 brackets with the dollar symbol.

So for example, instead of creating "animation-0.png" , "animation-1.png", etc; now you can specify the pattern by writing in the "Texture name" holder: "animation{_$}" where "{ }" indicates the pattern and $ the index. Generating "animation_0.png", "animation_1.png", etc. If you don't specify any pattern, then the default is applied with "-i".

Note: I already tested it and it's working well on web. Maybe something is missing. If that's so, please let me know to fix it.

@Junarox Junarox changed the title Added function to pattern the name when they are multiple .pngs Added function to pattern the name when there's are multiple .pngs Nov 19, 2021
@Junarox Junarox changed the title Added function to pattern the name when there's are multiple .pngs Added function to pattern the name when there's multiple .pngs Nov 19, 2021
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

Successfully merging this pull request may close these issues.

Exporting multiple spritesheet doesn't allow custom pattern on file name
1 participant