Author Topic: UITexture referenced texture disappears  (Read 23738 times)

vei

  • Guest
Re: UITexture referenced texture disappears
« Reply #15 on: August 29, 2012, 10:59:39 PM »
I'm still having the same problem. Using Unity 3.5.5f3 with NGUI 2.1.6.
Assigned the texture by dragging the image directly and it keeps disappearing randomly.

Is this supposed to be fixed with ver2.1.6?

bdominguez

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 38
    • View Profile
Re: UITexture referenced texture disappears
« Reply #16 on: August 30, 2012, 01:18:10 AM »
I'm still having the same problem. Using Unity 3.5.5f3 with NGUI 2.1.6.
Assigned the texture by dragging the image directly and it keeps disappearing randomly.

Is this supposed to be fixed with ver2.1.6?

No, it's fixed with the attached script in a previous post.
« Last Edit: August 30, 2012, 03:00:51 AM by bdominguez »

vei

  • Guest
Re: UITexture referenced texture disappears
« Reply #17 on: August 30, 2012, 02:27:18 AM »
Ah! My bad, thanks :)

nah0y

  • Sr. Member
  • ****
  • Thank You
  • -Given: 1
  • -Receive: 2
  • Posts: 430
  • \o/
    • View Profile
Re: UITexture referenced texture disappears
« Reply #18 on: August 30, 2012, 07:50:00 AM »
I was having the same problem thanks.

Also, too bad we cannot drag another sprite to the inspector UITexture script to change the texture :(

PhilipC

  • Guest
Re: UITexture referenced texture disappears
« Reply #19 on: August 30, 2012, 11:41:41 AM »
I'm not 100% sure what you mean by dragging another sprite to the inspector UITexture. You want this sprite to come from the built atlas and it automatically set up the UV in UITexture?

nah0y

  • Sr. Member
  • ****
  • Thank You
  • -Given: 1
  • -Receive: 2
  • Posts: 430
  • \o/
    • View Profile
Re: UITexture referenced texture disappears
« Reply #20 on: August 30, 2012, 11:43:46 AM »
No, I mean the first time you create a UITexture, there is a square field (Texture2D field) where you can drag an image onto it. Once you've done that, this field is gone :)

PhilipC

  • Guest
Re: UITexture referenced texture disappears
« Reply #21 on: August 30, 2012, 11:48:46 AM »
Hmm i just did that and the box stays where it is...You get some other functionality such as the UV's, depth, color tint, ... but i can still switch out the texture at will... If you care could you provide a img or your inspect for the UITexture maybe there is a bug.

nah0y

  • Sr. Member
  • ****
  • Thank You
  • -Given: 1
  • -Receive: 2
  • Posts: 430
  • \o/
    • View Profile
Re: UITexture referenced texture disappears
« Reply #22 on: August 30, 2012, 11:58:28 AM »
OOps sorry you're right! I swear there were nothing... :(

PhilipC

  • Guest
Re: UITexture referenced texture disappears
« Reply #23 on: August 30, 2012, 12:21:26 PM »
No harm done :)

yuewah

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 180
    • View Profile
Re: UITexture referenced texture disappears
« Reply #24 on: September 10, 2012, 09:49:26 PM »
I also have problem "UITexture referenced texture disappear"

NGUI 2.1.6 + Unity3d 3.5.5f3

1. drag the texture to UITexture
2. click Play -> no problem
3. reload the scene by clicking the scene file again
4. click Play again -> referenced texture disappear

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile

memetic arts

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 18
    • View Profile
Re: UITexture referenced texture disappears
« Reply #26 on: May 16, 2013, 05:55:07 AM »
Hi - I know this is an old thread, but there was an attachment with a UITexture script that may solve a problem I'm having.  If anyone has said script, I'd really appreciate it if you would re-attach.

If this script is the one that is now included with the latest version of NGUI, that information would also be helpful, as I may already have it, in which I case I'll need to pursue other solutions.

Thanks very much!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UITexture referenced texture disappears
« Reply #27 on: May 16, 2013, 02:29:04 PM »
This issue was fixed a long time ago, and should not be present in the latest version of NGUI.

memetic arts

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 18
    • View Profile
Re: UITexture referenced texture disappears
« Reply #28 on: May 17, 2013, 11:48:36 AM »
Thank you, Aren, good to know.

I guess my original question still stands then:

http://www.tasharen.com/forum/index.php?topic=4265.0

Any thoughts?  My productivity isn't dependent on solving this, but would just be good to know.  Thanks again!


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UITexture referenced texture disappears
« Reply #29 on: May 18, 2013, 06:06:00 AM »
Duplicating a UITexture makes it reference the same material. I don't advise duplicating them. Create a new one instead.