Author Topic: Attaching a mesh collider to a widget and scaling it  (Read 5011 times)

Meltdown

  • Jr. Member
  • **
  • Thank You
  • -Given: 10
  • -Receive: 0
  • Posts: 56
    • View Profile
Attaching a mesh collider to a widget and scaling it
« on: August 20, 2015, 10:43:33 PM »
I have a specific need for an app I'm working on that I need a MeshCollider component.
The MeshCollider needs to be exactly the same width and height of the screen size.

So I'm attaching a MeshCollider to my widget, and setting the anchors on the widget so they match the screen width and height.

Unfortunately my MeshCollider doesn't seem to match the widget size.

How can I resolve this?

Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Attaching a mesh collider to a widget and scaling it
« Reply #1 on: August 22, 2015, 02:32:53 AM »
You need to resize the collider manually. NGUI can only do this for box colliders.