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"

In-editor preview image in a data asset

I've recently come across SDG Nelson's devlog blog on Unturned II and really liked how he previews a recoil pattern of a gun in one of his data assets: https://youtu.be/v3g-damXGGE?t=283. Therefore I'd like to create such system to visualize some properties in my own game. Do you know what type of object he might be actually using? I tried using RenderTarget and it could potentially work but just wanted to find out that there's maybe a better way. Also his preview changes instantly which I don't know would be possible using a RenderTarget

Product Version: UE 4.22
more ▼

asked Aug 02 '19 at 05:50 AM in C++ Programming

avatar image

132 6 13 20

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

1 answer: sort voted first

Yes, but at that point you need create your own real deal asset type. Just so you know Data Assets was made to do simple data containing assets without need of hussle to resister custom asset actions and creating UFactory for it and from asset action you can set up asset content browser appearance, including custom 3D thumbnail and Slate overlay.

Don't e afraid, by default if you don't declare custom editor for your asset, UE4 will fallback tio use property editor on it same as it does with data asset.

Here nice introduction in to creating your own assets:


And here function you need to override, to create Slate UI overlay on top off asset in content browser:


You also have option to create 3D preview:


You probably need to learn how to use Slate, which is UE4 IU system that also powers UMG:


For preview in editor you will need to create custom editor, which is a lot bigger hussle and even less documented, you will need to look up in to engine code for examples of custom editor. Remeber that you extending editor code, all assets are made same way as mentioned above.

more ▼

answered Aug 05 '19 at 09:32 PM

avatar image

37.8k 937 172 1123

avatar image xSheim Aug 10 '19 at 08:31 PM

Thanks for such nice suggestions, I'll have a look into all of them and hopefully post a solution soon

(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