As it stands, it is only possible to bind a whole array as input. However it would be great to be able to bind individual element of said array.
Additionally, the + button doesn’t do anything for inputs, so that’s obviously a bug.
As it stands, it is only possible to bind a whole array as input. However it would be great to be able to bind individual element of said array.
Additionally, the + button doesn’t do anything for inputs, so that’s obviously a bug.
I thought about the following but this is no good since inputs need to be connected.
UPROPERTY(EditAnywhere, Category = "Input", meta = (DisplayPriority = 1))
int32 NumResources = 0;
UPROPERTY(EditAnywhere, Category = "Input", meta = (DisplayPriority = 1, EditCondition = "NumResources > 0", EditConditionHides))
UCourageStateTreeResourceBase* InResource1 = nullptr;
UPROPERTY(EditAnywhere, Category = "Input", meta = (DisplayPriority = 1, EditCondition = "NumResources > 1", EditConditionHides))
UCourageStateTreeResourceBase* InResource2 = nullptr;
UPROPERTY(EditAnywhere, Category = "Input", meta = (DisplayPriority = 1, EditCondition = "NumResources > 2", EditConditionHides))
UCourageStateTreeResourceBase* InResource3 = nullptr;
UPROPERTY(EditAnywhere, Category = "Input", meta = (DisplayPriority = 1, EditCondition = "NumResources > 3", EditConditionHides))
UCourageStateTreeResourceBase* InResource4 = nullptr;
UPROPERTY(EditAnywhere, Category = "Input", meta = (DisplayPriority = 1, EditCondition = "NumResources > 4", EditConditionHides))
UCourageStateTreeResourceBase* InResource5 = nullptr;