UIToolkit Buttons and Unity WebPlayer

Ran into a problem the other day when publishing a Unity game to Webplayer – all of my UIButtons were broken and not detecting clicks. After a bit of a search, I came across a solution on Github posted by a chap called hyakugei.

Basically it involves using a wrapper around Touch instances to fake them when a touch is detected, as for some reason they don’t get picked on WebPlayer builds.

You can either download his branched UIToolkit, or, as I did run through the list of changes and add them manually. I picked this route because my UIToolkit is already heavily customised. Works like a charm.

Leave a Reply