Skip to content

[BUG] FigmaImages with overlapping masks #57

@matfabry

Description

@matfabry

Describe the bug

In Unity, when 2 GameObjects with FigmaImage and Mask components overlap, the upper mask does not work.
If the upper object is inside the other one, the masks work as intended.

To Reproduce
Steps to reproduce the behavior:

  1. Create GameObject under Canvas
  2. Add FigmaImage and Mask components (make the FigmaImage elliptic)
  3. Add a child GameObject with FigmaImage component (give it a colour)
  4. Clone the parent GameObject (change the colour of the new child)
  5. Try moving the upper object so they overlap

Expected behaviour
Overlapping masks should be independent.

Screenshots
Image

Prefab
Here is a zipped prefab (from the screengrab) to import into a project that contains FigmaImage.
FigmaImageMasks.prefab.zip

** Version**

  • Unity 2022.3
  • macOS
  • URP

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions