Search Unity

Question What happens when TileBase.StartUp returns false?

Discussion in '2D' started by vonchor, Dec 24, 2020.

  1. vonchor

    vonchor

    Joined:
    Jun 30, 2009
    Posts:
    249
    No more complex than that. I'm working on a custom tile and doing 'stuff' in StartUp. You're supposed to return a bool to indicate success.

    What does returning false cause to happen in the engine and/or editor? Does it try again? There's no explanation in the docs for why you might return false (perhaps certain errors should be ignored in this context) nor what happens when you return false.