Author Topic: How to create a UIAtlas object from Coding?  (Read 2469 times)

xiaoniaojjj

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 140
    • View Profile
How to create a UIAtlas object from Coding?
« on: September 24, 2012, 11:01:17 AM »
How to create a UIAtlas object from Coding? like  "object obj = Resources.Load (path);"

PhilipC

  • Guest
Re: How to create a UIAtlas object from Coding?
« Reply #1 on: September 24, 2012, 02:11:02 PM »
Are you trying to create an atlas at run time or load it? if your just loading it and its located in the resources folder then what you've done should work. although that will load a GameObject type you will need to do a GetComponent<UIatlas> on the loaded object.