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 should on add new systems like a procedural generation system or other single instance shared systems.

Lets say I have my own system for creating or generating meshs or loading them from an fbx. Essentially the system will return an instanses of a UMeshComponent. This system would then be called from different places based on need. GenerateTowerMesh(settings) or GenerateStairwayMesh(settings), so first of all no two instances should be created so no memory will be wasted.

But where in the engine should something like that go.

Should it be implemented as a plugin or some kind of singleton, should the GWorld proxy class be imitated, is there a different place to add it properly?

Product Version: UE 4.15
more ▼

asked May 11 '17 at 06:38 PM in C++ Programming

avatar image

26 1 3 6

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

1 answer: sort voted first

In Unreal Engine's code a system like yours could be a Struct in a Module. Look for FMeshUtilities code in MeshUtilities.cpp

more ▼

answered May 11 '17 at 06:49 PM

avatar image

293 11 8 20

avatar image TheSpaceMan May 11 '17 at 07:00 PM

So a plugin then is what you are recommending?

avatar image 42EspoiR May 11 '17 at 07:29 PM

If you want to reuse it on an other project, yes. Else a struct should be enough.

(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