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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How can change a static mesh material via blueprint

Hi guys,

I made a script that lets the publisher choose to static mesh and shows the materials used in it. Then I wish you could change this material. I've tried many ways and I am not finding solution. Can you help me.

alt text

Product Version: UE 4.10
Tags:
screen_01.jpg (646.3 kB)
more ▼

asked Nov 18 '15 at 09:16 PM in Blueprint Scripting

avatar image

Damien2k15
50 9 19 25

avatar image MeepMeep Nov 18 '15 at 09:18 PM

Hello, I'm listening but I'd like to know that object is a pawn or an actor.

avatar image Damien2k15 Nov 18 '15 at 09:24 PM

Sorry MeepMeep

I wrote the wrong title. I want to be able to change the materials used in static mesh. The user can change the static mesh and the system updates the list of materials, only want to be able to change them.

alt text

screen_02.jpg (495.4 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Well, on the left side tab of the editor, you can find variable tab. Default static mesh / Custo'n'staticmesh (which is typing error I think..) You can select those variable and see Detail tab, and you can select meshes and assign into those variables. but you must compile your blueprint otherwise you're not able to fix those meshes.

more ▼

answered Nov 18 '15 at 09:21 PM

avatar image

MeepMeep
74 2 4 12

avatar image Damien2k15 Nov 18 '15 at 09:28 PM

I'm able to change the static mesh, which can not change is the materials

avatar image MeepMeep Nov 18 '15 at 09:51 PM

Your code is referring "Default Static Mesh" variable's material, therefore you need to change that Default Static Mesh variable's material ( if you simply don't want to change those code.. ) You can double click that default mesh and edit/explore that material's name also. Hope I'm talking about that you asked. It's confusing that I remember you asked about meshes ( I found that you commented, it's okay though! :) )

(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