Author Topic: UICamera.selectedObject isn't set null when GameObject is destroyed  (Read 3359 times)

beings

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 5
    • View Profile
UICamera.selectedObject isn't set null when GameObject is destroyed, thus the call to UIKeyNavigation.startsSelected in a new UI fails.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UICamera.selectedObject isn't set null when GameObject is destroyed
« Reply #1 on: January 06, 2015, 11:03:46 AM »
Assuming you are the one who destroys it, you should also probably be the one to clear the selection.