SDetailsView - how to use outside PropertyEditor
I need SDetailsView widget in my editor module. But when I try to use it,I get bayzlion of linking errors:
and so on.
So far I tried to include:
To no affair. I don't know what else I would need to get it working.
Update: This is not the best way to do it. See my other answer.
My previous, not recommended method:
SDetailsView doesn't seem supposed to be used outside private engine code. It's even defined in a Private folder.
If your goal is to create a details panel like the World Settings one, you can use SSingleObjectDetailsPanel. You just need to add
Then, create a widget class extending from SSingleObjectDetailsPanel and implement the correct methods. I guess a good and straight-forward example in the engine is the details panel for the SpriteEditor in Paper2D. Take a look at the file Engine\Plugins\2D\Paper2D\Source\Paper2DEditor\Private\SpriteEditor.cpp:252
Better, easier way!
Found another way, even simpler and used with much more frequency in the engine source, so it's probably the newest/better way to do it (because we know Paper2D, where I got my previous answer from, hasn't been updated in a while).
I'm using it as a child in a custom widget, but in the engine code, on the World Settings tab creation, they just used the IDetailsView directly. Here's a shortened snippet of that as an example:
You also need to add
Follow this question
Once you sign in you will be able to subscribe for any updates here