TLDR;
I have this:
but I want this:
Read down below for more context…
Hello,
I have an Array declared with Instanced
Specifier:
UPROPERTY(BlueprintReadWrite, EditAnywhere, Instanced, Category = "Config")
TArray<UVisualisationShape*> ShapesToDraw;
…which is meant to store the references to the Objects declared with EditInlineNew
Specifier, e.g.
UCLASS(Abstract, DefaultToInstanced, EditInlineNew, ClassGroup = "VisualisationShape",
meta = (DisplayName = "Visualisation Shape"))
class TLOB_API UVisualisationShape : public UObject
{
GENERATED_BODY()
public:
UPROPERTY(EditAnywhere, BlueprintReadWrite)
FTransform Offset;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
FColor Color = FColor::Cyan;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
float Thickness = 1.0f;
};
And this works quite well in the Editor.
These Objects appear in the following way when selected:
But there is a small caveat - Properties appear under the dropdowns.
Not a very big deal, but I don’t like it at all.
I wish that these would be listed without expanding any dropdowns.
Is there any way to remove these category dropdowns?
Perhaps, a Specifier for UPROPERTY/UCLASS?
So all the Object’s Properties would appear next to each other (see TLDR section above for image).
Thanks!
Edited and bumped as I’m still looking for answer…