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

custom brush resizing #22

Open unitycoder opened 8 years ago

unitycoder commented 8 years ago

should allow adjusting brush size for custom brushes (by scaling the brush image)

unitycoder commented 8 years ago

also needed for 3D touch (size based on pressing force)

jaelacaxa commented 5 years ago

i found this issue and want to know if there's any progress. tnkxx

unitycoder commented 5 years ago

source is no longer updated, so you would need to add texture resizer to do that, some ideas were mentioned here https://forum.unity.com/threads/released-mobile-paint-with-multi-touch.262645/page-6#post-4890155

*oh wait that was you :)

jaelacaxa commented 5 years ago

yes, it was me :D i'm stuck on resizing the pixel array. i should resize customBrushWidth, customBrushHeight and customBrushBytes, right ?

unitycoder commented 5 years ago

oh yes, need to set some of those variables also when using different size. (some of those are there just to work as an cached values)