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 to import custom file type, that describes actor/blueprint?

I would to import my voxel objects into UE4 as a content assets, which can be further placed into the level. The voxel object is basically a mesh built up from multiple cubes with color that each cube can have. I have custom fileformat, that is capable for storing voxel data in array, binary encoded. Moreover, each voxel object should have destructable behaviour, so I deducing that it finally should be some kind of blueprint or so.

What I've already figured out is that I must have a custom class for voxel objects (there I have my UVoxelObject based on UObject) and a factory that can load objects from conent browser (UVoxelObjectFactory based on UFactory).

By overloading some virtual methods of factory and adding my custom file extension to Formats variable, I achieved basic behaviour of Unreal Editor, that allows me to browse for my voxel files, and create empty assets in my content browser.

However, I can't drag & drop them into the level.

How to approach to this problem, how to make them draggable into the level? Is there something like blueprint for assets / classes? Should I use AActor instead of UObject for UVoxelObject base (I've tried this, but editor crashes after importing) ?

Each voxel object, that will be dropped into the level should finally have mesh with material, and some kind of raw data, that will be used further in destruction time.

Thanks in advance for help.

Product Version: UE 4.10
Tags:
more ▼

asked Nov 22 '15 at 10:49 AM in C++ Programming

avatar image

komorra
16 2 2 4

avatar image intoxicat3 Mar 07 '16 at 07:35 PM

Any chance you can add some light how did you create new UFactory and be able to import some binary file?

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

0 answers: sort voted first
Be the first one to answer this question
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