Download

Event showing up in details tab

I want to have my event showing up in the menu like occurs on this button:

I found this in the ue4 source under ComboBoxString.h so have copied the relevant code:




UCLASS(EditInlineNew)
class DOGFIGHT_API UEventState : public UActorState
{
	GENERATED_BODY()

	DECLARE_DYNAMIC_MULTICAST_DELEGATE(FOnOpeningEvent);
public:

	virtual void StateInit(AGActor* owner);
	virtual void StateEnter();
	virtual void StateUpdate(float deltaTime);
	virtual void StateExit();

	// this is only used so we can give the state some usable name to help identify it
	UPROPERTY(EditAnywhere, BlueprintReadWrite)
	FName	Name;



public: // Events

	/** Called when a new item is selected in the combobox. */
	UPROPERTY(BlueprintAssignable, Category = Events)
	FOnOpeningEvent OnSelectionChanged;
};


Yet it doesnt show up in the details:

anyone got any ideas?

it seems the events require a component, so I am trying to customise the details panel using this article:
https://docs.unrealengine.com/latest/INT/Programming/Slate/DetailsCustomization/index.html

not really having any success :frowning:

I think I want to be able to customize the inline properties