Jump to content

Retrieve RenderTexture


Recommended Posts

Is there any way to retrieve RenderTexture from the TextureManager? I create and save the RenderTextures to the TextureManager and would like to modify this textures later without keeping all the references. I store multiple RenderTextures as frames to minimize number of different textures. I've modified RenderTexture a bit to allow me to create it from existing texture/frame,  but if that already exists, that would be even better. If it doesn't exist, I can make a pull request.

Link to comment
Share on other sites

There's no ability to retrieve a Render Texture from the Texture Manager, and I wouldn't want to keep them in there either because they're Game Objects at heart. If you need to retain the RT to perform other operations on it later, then it's up to you to manage those references yourself. You could easily create a custom Cache (this.cache.addCustom('rendertextures')) and store them in there.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...