Author Topic: HUDText - HUDRoot object need rigidbody?  (Read 3792 times)

leegod

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 90
    • View Profile
HUDText - HUDRoot object need rigidbody?
« on: September 30, 2014, 07:06:46 AM »
Your sample uses rigidbody at hudroot object, but why and is it needed?


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: HUDText - HUDRoot object need rigidbody?
« Reply #1 on: October 01, 2014, 05:40:08 PM »
It's a Unity thing. Moving colliders is expensive. Moving rigidbodies is cheap.

leegod

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 90
    • View Profile
Re: HUDText - HUDRoot object need rigidbody?
« Reply #2 on: October 01, 2014, 08:43:15 PM »
It's a Unity thing. Moving colliders is expensive. Moving rigidbodies is cheap.

How about no rigidbody? Then no cost.
Thx.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: HUDText - HUDRoot object need rigidbody?
« Reply #3 on: October 02, 2014, 11:29:15 PM »
No rigidbody means you're moving colliders. That's expensive.

If you have no colliders, then it's fine -- you don't need anything.