Code Monkey home page Code Monkey logo

Comments (6)

ChuanXin-Unity avatar ChuanXin-Unity commented on August 20, 2024

Hi, I tried adding this new transform rule in:
https://github.com/Unity-Technologies/2d-extras/tree/rotatedmirror

If you can, could you try it out and see if that is what you are looking for? Thanks!

from 2d-extras.

samgong avatar samgong commented on August 20, 2024

For the horizontal grass that mirrored, it does not match the new rule and the default sprite is shown.
original: OK
10
mirrored: not working
11

For the vertical grass, the new rule matches both cases but the sprite itself need an additional mirror transform.
13
14

from 2d-extras.

ChuanXin-Unity avatar ChuanXin-Unity commented on August 20, 2024

Hi, perhaps I don't quite understand how the Transform Rule should work for you. If you could share how your Rules work and how they look like in the inspector, that would be helpful! Thanks!

from 2d-extras.

samgong avatar samgong commented on August 20, 2024

grid

The goal is to create tile 1 to 8 with rule tile. Let tile 1 be the base tile sprite, the rotation rule will generate tile 1, 3, 5, 7. the mirrorX rule will only generate tile 1 and 2. To generate all 8 tiles, currently I have to use 2 base tile, tile 1 + rotation rule to generate tile 1, 3, 5, 7 and tile 2 + rotation to generate tile 2, 4, 6, 8. Now "rotate and mirror" is a rule to generate all 8 tiles at once from tile 1.

from 2d-extras.

ChuanXin-Unity avatar ChuanXin-Unity commented on August 20, 2024

image

Sorry for the late reply! I updated the rotatedmirror branch based on the example you have given. Hopefully that matches what you need!

from 2d-extras.

samgong avatar samgong commented on August 20, 2024

Thank you. It is exactly what I need!

from 2d-extras.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.