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"

Where is the Create Static Mesh feature coded on Procedural Mesh Components?

I am wanting to look at the source code for the feature when you have a procedural mesh component instance selected in the editor, Create Static Mesh. However, I cannot seem to find it. Where is the source for this located at?

Product Version: UE 4.14
Tags:
more ▼

asked Jan 17 '17 at 02:14 PM in C++ Programming

avatar image

BlackFangTech
210 23 33 58

avatar image Anansi- Jul 26 '17 at 11:14 AM

Hi BlackRang666,

I would also like to convert my mesh in c++, are you willing to post your solution here? I could look trough the source myself and try to figure it out but it is easier to look at a working example :)

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

2 answers: sort voted first

Hey BlackRang666-

You're asking about the "Create StaticMesh" button in the ProceduralMeshComponent details panel, is that correct? If this is the case, this is part of the code for the details panel and can be found in the ProceduralMeshComponentDetails.cpp file. Specifically, you'll want to look at the code in the CustomizeDetails function. This shows how the button is being setup as well as what other functions are being called when the button is used in the editor.

Cheers

Doug Wilson

more ▼

answered Jan 17 '17 at 09:25 PM

avatar image lcbasu Jun 30 '17 at 04:09 AM

What if I need to convert Procedural Mesh to static mesh inside my C++ code itself and not using the "Create Static Mesh" Button?

avatar image Doug E ♦♦ STAFF Jun 30 '17 at 02:00 PM

The CustomizeDetails function steps through what happens when the button is pressed so following that function should help you set up a similar process in your code. Specifically, the call to FProceduralMeshComponentDetails::ClickedOnConvertToStaticMesh should be helpful.

avatar image lcbasu Jul 06 '17 at 01:26 PM

It helped. Thanks.

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

Hi BlackRang666,

I would also like to convert my mesh in c++, are you willing to post your solution here? I could look trough the source myself and try to figure it out but it is easier to look at a working example :)

more ▼

answered Jul 26 '17 at 11:14 AM

avatar image

Anansi-
6 1 2

(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