Author Topic: How Can I copy all the pixel on a UIPanel and make it to a UITexture?  (Read 1549 times)

lishuen

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 14
    • View Profile
How Can I copy all the pixel on a UIPanel and make it to a  UITexture?  I want to incream my UIscrollView moving speed.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How Can I copy all the pixel on a UIPanel and make it to a UITexture?
« Reply #1 on: September 24, 2014, 01:39:20 PM »
You can set up an off-screen camera and render everything into a texture. However note that you will end up using a lot of texture memory, so your "optimization" will not be so clever once you realize how much memory you've used up.

lishuen

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 14
    • View Profile
Re: How Can I copy all the pixel on a UIPanel and make it to a UITexture?
« Reply #2 on: September 24, 2014, 09:40:40 PM »
Thanks~! I will give it a try. maybe it can run it more speed but lot of memory cost.