Announcement

Collapse
No announcement yet.

How do I serialize a texture created using Render Target Create Static Texture Editor Only?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How do I serialize a texture created using Render Target Create Static Texture Editor Only?

    I have an object that captures a camera to a rendertarget on a particular event, and then creates a static texture object out of it, and then configures a material instance instance to give it a reference to this texture.
    Unfortunately, when I save and reload the level, or when I start a game, this texture value on the material instance has not been saved/serialized, and starts out as null again.
    How do I make this procedurally created texture persistent? (Note: I don't want a name in the asset browser for this texture, I just want to store the texture for later use when the game runs.)

    #2
    Reading some more code, I don't think this is possible -- it has to have a name. And if that asset name already exists, it will create a new one, so I have to clean up the old ones. Oy gewalt!

    Comment

    Working...
    X