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

animated floodfill #37

Open unitycoder opened 5 years ago

unitycoder commented 5 years ago

some ideas to make floodfill appear slowly:

convert void FloodFill(int x, int y into coroutine IEnumerator FloodFill(int x, int y

then add yield return null; inside the while loop. (could make it being called only every x steps though, to keep it faster)

also need to call the floodfill with StartCoroutine() then. AND might have to set textureNeedsUpdate to true from the coroutine loop also.