unitycoder / UnityMobilePaint

Public repository for MobilePaint issues & requests
https://www.assetstore.unity3d.com/en/#!/content/19803?aid=1101lGti
MIT License
49 stars 16 forks source link

Brush preview #35

Open MarvelWild opened 6 years ago

MarvelWild commented 6 years ago

I want to show brush preview (realtime, under cursor), please point me in some direction how to do that

unitycoder commented 6 years ago

hmm.. for custom brushes, probably easiest option would be adding UI image element that follows mouse.. and to use same image as the custom brush selection.

but haven't tested it whether size matches or not..

for normal circle brush, would probably try the same, having UI circle image, and adjust its size based on given brush size.

i think can do those without modifying any of the mobilepaint code, test by adding new script, that moves UI preview image to mouse position, and for circle brush preview, take MobilePaint paintColor (its public var), and use that as a tint for your UI preview image.