Skip to content

animated floodfill #37

@unitycoder

Description

@unitycoder

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions