Is their any way to add shadow and outline to sprites?

is their any way to add shadow and outline to sprites? like label has these components to add.
@zzf_Cocos @slackmoehrle

@RAAng @huynhthuan @linrm
is their any way to add shadow and outline to sprites? like label has these components to add.

Yes there is
You can create the same sprite with the shadow on it and for example when the player presses on the sprite / button it changes it’s current sprite to the sprite with the shadow,
and when reclicking on it changes to it’s normal sprite

cocos creator does not provide components to achieve this effect, you can try to add your own.

If you absolutely want to do it dynamically with a shader, you should look into signed distance fields.
Here is a good tutorial series about them, not in cocos, but since it’s only shaders, it can be made in cocos too :