x

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"

How do I change the material of a streamed static mesh actor, through a UMG blueprint?

The UMG works as a starting menu. After I've chosen all the streamed levels, the option to change one of the materials is set to appear.

My objective is to change the material of a static mesh actor, localized in a sublevel that is loaded only after I set it to load through the main menu, through the click of a button.

The problem is that I can't find a way to reference it to my main menu. Is there any way to do this, even through Game Insntance?

P.S.: I can't directly change the position of objects and add others into the scene. For this case, I need to only alter the coding of the scene, not changing the scene objects whatsoever.I can't directly change the position of objects and add others into the scene. For this case, I need to only alter the coding of the scene, not changing the scene objects whatsoever.

Product Version: UE 4.19
Tags:
more ▼

asked Jul 03 '18 at 01:32 PM in Blueprint Scripting

avatar image

MarcolinoIM
5 2 1 2

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

1 answer: sort voted first

I'm not sure this is the exact answer you want, but place the static mesh inside a blueprint. then in the blueprints construction script you can create a dynamic material instance that then allows you to control the material.

Then you can use the button to spawn from actor class that blueprint and set the material you want

alt text

alt text

widgetbp.png (72.8 kB)
more ▼

answered Jul 03 '18 at 02:02 PM

avatar image

RustyAce
21 1 1

avatar image MarcolinoIM Jul 03 '18 at 02:16 PM

Thanks, however, while this may work when adding the actor to a scene, I can't directly change the position of objects and add others into the scene. For this case, I need to only alter the coding of the scene, not changing the scene objects whatsoever.

(comments are locked)
10|2000 characters needed characters left
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