Hello Guest

Author Topic: tk2dUIItem events don't fire if Raycast Type == Physics2D in Tk 2d UICamera  (Read 3115 times)

RyuK

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 6
    • View Profile
Hi, I followed the tutorial
http://www.unikronsoftware.com/2dtoolkit/docs/latest/ui/getting_started.html
and tried these events with my script
http://www.unikronsoftware.com/2dtoolkit/docs/latest/ui/system.html
but when I change Raycast Type == Physics2D in Tk 2d UICamera, events are not fired (Physics3D is fine).
Is it by design or is there any workaround for this?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
The built in components use 3D physics. 2D physics is only supported if you want to build your own gui components with the built in scripts.