

Also, you can group layers by selecting them and hitting Command-G.Ĭlicking on the mask button will add a layer mask, hold down Command to add a vector mask instead. To copy a layer, you can drag it to the New Layer button, hold down Option if you do want to see extra options this time. You can also hit the New Layer button or add Command to the New Layer button to create a new layer below the current one. To skip this dialog, use Option-Command-Shift-N instead. This will bring up the New Layer dialog, with various options. To create a new layer, hit Command-Shift-N. For instance, there’s no default shortcut for adding a Curves Layer Adjustment, though you can add one if you wish. Here we’ll go over some shortcuts related to the buttons at the bottom of the Layers Panel.įor the most part, there aren’t too many native shortcuts here. We’ll end out each section with a brief discussion on some common shortcuts associated with the features we just discussed. Then give the character an unique mask with her shape and an opacity that is equal to the background mask.There’s nothing tricky about these buttons, one creates layers, the other destroys them. But whenever the character overlaps with the flame, put the character to the very front layer. The only solution I can think of, is to put the flame in front of everything as in pic 3 and pic 4. So how can I achieve the effect of the above image in unity, maybe using code? Yes, I photoshopped this image in desperation. The ideal lighting situation should have the mask sprite shadowing the character but not the flame, while the character should be in front of the flame: Until.until when the character walks over the flame and got masked by it, since the flame is also in front of the character.įine! I'll just move the character in front of the flame:īut this defies the purpose of the mask sprite which serves to mask out the character in shadow.

So maybe I can move the flame to the front of all sorting layers? It worked: However, in reality the flame or any light source should not be masked by the shadow. The character sits in the shadow which is perfect.

The mask sprite is an image with dark areas representing shadow (alpha areas representing lighting). Things became complicated when I added the 3rd sprite which is a mask sprite. To introduce the problem, the image below shows a character sprite sitting on top of a flame sprite in two sorting layers: I'm having a problem (which maybe only solvable using code) with sorting three sprites into three layers in a specific order.
