Harry McCoy
Harry McCoy

Reputation: 33

Is there a way an object only partly visible when it is partly through a border

The title is a little confusing I know but I have a box that objects need to descend into (see image) is there anyway to make it so that the arrow isn't visible when outside the box but becomes visible when it enters the box.

enter image description here

Upvotes: 2

Views: 194

Answers (1)

Julxzs
Julxzs

Reputation: 737

One way to do this, would be to use a sprite mask. Put the sprite mask object on your box, then change Mask Interaction to Visible Inside Mask on your arrow.

Here's some screenshots of what I did for reference:

Box:

box inspector

Arrow:

enter image description here

Upvotes: 2

Related Questions