Author Topic: Change Material of UIAtlas in the middle of running app  (Read 3469 times)

joahjang

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Change Material of UIAtlas in the middle of running app
« on: December 16, 2013, 11:14:46 AM »
Hi guys,

This is a super simple question.
I want to change UIAtlas's Material to none while I'm running my app via c# script. The reason is I don't use that Atlas on a specific scene. I double, triple checked whole hierarchy click by click and there's no connection with this Atlas.

So, I just want to get rid of that Material during my app is running. Could you please help?
Thanks.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Change Material of UIAtlas in the middle of running app
« Reply #1 on: December 16, 2013, 05:08:26 PM »
I'm going to throw a wild guess here and assume that you are trying to get rid of unused resources.

The atlas material is not what you want to change. Unload its texture instead. Leave the material as-is.