x


How to get opengl texture id of a RenderTexture?

Anybody know how to get the opengl texture id of a RenderTexture in Unity 2.5? I have known this can be done with GetNativeTextureID () function in Unity 3.1. But I am now using Unity 2.5 and GetNativeTextureID does not exist in 2.5. I also try GetInstanceID(), but this function seems to work with Texture2D and does not work with RenderTexture.

I use windows version and start unity application with "-force-opengl" flag.

more ▼

asked Jan 06 '11 at 01:04 PM

atigol gravatar image

atigol
1 2 2 4

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

1 answer: sort voted first

If GetInstanceID isn't working then I don't think anything will, that's the main reason the new function was added into 3.0

more ▼

answered Jan 06 '11 at 01:58 PM

Mike 3 gravatar image

Mike 3
30.5k 10 65 253

(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:

x2196
x113

asked: Jan 06 '11 at 01:04 PM

Seen: 1500 times

Last Updated: Jan 06 '11 at 01:04 PM