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 I add a Material to Procedural Mesh?

I have followed the Procedural Mesh Generation tutorial on the wiki. Now I was wondering how I would go about setting it up that it can accept a material. Are there any places I should be looking in the source for an example?

Product Version: Not Selected
more ▼

asked May 05 '14 at 12:20 AM in C++ Programming

avatar image

97 9 9 16

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

1 answer: sort voted first


well first of all you need UVs

I wrote up the code here:



setting the material itself is easy!


more ▼

answered May 05 '14 at 02:36 AM

avatar image

10.6k 446 345 1087

avatar image JohnnyBeans78 May 05 '14 at 12:09 PM

I cannot believe I am going to admit this, but here goes. I had that thread open in one of my tabs, and for some reason it did not go past the picture of the generated mesh. Maybe it required a refresh... I don't know. But either way thank you so much for all the work, and for sharing. This community has a very approachable feel to it, which is awesome.

avatar image Tim C ♦♦ STAFF May 05 '14 at 01:50 PM

Hi JohnnyBeans78. It sounds as though you were able to resolve the issue you were experiencing. If so, please click the check mark for this answer to indicate that your question has been resolved (or you can post a comment to confirm that everything is working and I can take care of marking your question as resolved).

Have a great day!

avatar image JohnnyBeans78 May 06 '14 at 04:31 PM

Rama I have one more question, and please let me know if I should ask it in a separate question. How do I get "TheMaterial". After adding the UVs now my procedural "Quad" in my case is showing the checker board texture. But I cannot change the texture in the editor. Being that I only want one material on all the quads I create it would be ok if I cannot change them in the editor, but I would like to be able to create the material in the editor, then assign it in code (or BP). Edit: I am going to create a new question as it is only fair and I believe I can word it in a way that it might be more helpful to others searching for similar info.

(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