0
Pending Review

Mouse Click on a 2D Sprite

Tom Jones 4 years ago updated 4 years ago 6

If I click on a 2D Sprite on my PC, it works without problems. On my Ipad ist doesn´t.

I have a 2D Collider on my sprite.

How must I setup the code?



Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):

maybe this will work?

edited: my bad, probably this will work only with gui elements like buttons etc.

Thanks for your help.

Maybe other ideas?

Pending Review

Odd, according to forums it should work out of the box from Unity 4+. I'll have to investigate.

Do other iOS developers have the same issue?

+1

@Lazo Nope no problems at all.

Just finished a iOS project I've been working on for six months.


@Tom maybe you forgot the AOT pre-Build?

Thanks Elin, I see. Yes, either missing AOT pre-build or another error in the console then. Please give me more info!

+1

That´s it !!

Tools > Ludiq > AOT Pre-Build


Thanks. Now it works perfect !