x


Destroying drawn gui texture

After I use GUI.DrawTexture to draw a gui texture, how do I destroy it in scripting?

more ▼

asked Jan 18 '11 at 04:57 AM

pigi5 gravatar image

pigi5
145 22 23 35

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

You don't, since it only exists for one frame anyway. Either remove or disable the script with the OnGUI function, or use a boolean variable to toggle whether the texture is drawn or not.

more ▼

answered Jan 18 '11 at 05:47 AM

Eric5h5 gravatar image

Eric5h5
80.3k 42 132 521

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3698
x2210
x764

asked: Jan 18 '11 at 04:57 AM

Seen: 1404 times

Last Updated: Jan 18 '11 at 04:57 AM