Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Is it possible to overwrite a texture in BP?

I have a texture with pony and I want to overwrite it with a texture with kitten. Is it possible via blueprint?

Texture Render Target does something similar (e.g. SceneCapture2D can write texture value in runtime), but I want to set it to some other texture, not scene render. Any clues?

Product Version: UE 4.10
more ▼

asked Feb 06 '16 at 04:37 PM in Blueprint Scripting

avatar image

2k 154 153 206

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Use texture parameter in material, here oytu have doc if you dont know baout parameters at all:


Texture works same as those showed there, simply it sets texture sampler in material

more ▼

answered Feb 06 '16 at 04:42 PM

avatar image

35.7k 926 168 1104

avatar image Slavq Feb 06 '16 at 04:53 PM

Thanks, I know how to set texture parameter in material, but I'm asking about overwriting the actual texture asset, not material parameter. So e.g. you have a texture asset with kitten and another texture asset with a dog, then you do something like textureWithKitten = textureWithDog; and you have two texture assets with dog now.

I did some further research though, and it seems that it's not possible without C++...

avatar image Shadowriver Feb 06 '16 at 05:32 PM

Yea, but why you want to do so? UTexture should be consider texture it self

avatar image Slavq Feb 06 '16 at 05:38 PM

I was brainstorming (or rather brainfarting) to find a solution for 'universal' texture pool with ability to set 'temp' textures, and so on, for one of my tools.. Actually nevermind, it was too crazy idea, I don't need this anymore :) I'll accept your answer now, you and your cat deserves it!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

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

Answers to this question