How do use the ShadowGenerator Utility to create shadows for custom sprites?

+1 vote
asked Mar 6, 2019 in Help by bjohnny (130 points)
The utility is not documented at all. Adding our custom shadows is crucial and it is actually the main reason our company decided to buy the asset.

When adding the ShadowGenerator to an object with the image component attached and hitting 'Generate Shadow' a NullReferenceException is thrown. No matter whether the folder 'GeneratedShadows' already exists or not.
Same result when adding the utility to a button. It also doesn't make a difference whether there is a sibling to the button/image called 'Shadow' in the hierarchy. I have tried many ways but always got a NullReference exception. Can you please provide a manual?

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Welcome to MaterialUI support! Ask us anything :)
...