How to create a slate widget for a UProperty of a UClass without the object instance
I have the need to make a slate widget for a graph that allows me to see the UProperties of a UClass and to place a value for said UProperty.
I can't use the PropertyEditor since it seems to need the instance of the object, and I don't have that. I only have an UClass (Specifically a sub class, using TSubclassOf) and I can't make instances of it for various reasons.
I think I found in the blueprint structure editor an example of what I need (the default values table) but I couldn't understand how to replicate that.
asked Sep 19 '18 at 05:13 PM in C++ Programming
You are aware that you need to hold those variables somewhere in memory? And easiest way to do so is by making UObject of that class? There no way around it, either use UObject or reconstruct it's structure with UProperty data you have by different means (like array?). Blueprint editor probably editing Class Default Object (CDO) which holds default varables of class
But i would double check it in engine source code since just editing CDO might not only thing you need to do
answered Sep 19 '18 at 10:16 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here