USTRUCT works in blueprint not in editor

AgentArachnid66
Tue, 12 Jan 2021 04:03:25 +0000
Editor Scripting

I’ve been working with this struct a for a while now, but needed to add a new variable to it, but for some reason I can’t access it from the details panel. Here is my code:
USTRUCT(BlueprintType)
struct FNeuron {

	GENERATED_USTRUCT_BODY()

	FNeuron() {	}

	FNeuron(TArray<FSynapse> synapses, float neuronValue, float neuronError, float thresholdValue) {
		Connections = synapses;
		value = neuronValue;
		error = neuronError;
		theta = thresholdValue;
	}

	UPROPERTY(EditAnywhere, BlueprintReadWrite)
		TArray<FSynapse> Connections;
	UPROPERTY(EditAnywhere, BlueprintReadWrite)
		float value;
	UPROPERTY(EditAnywhere, BlueprintReadWrite)
		float theta;
	float error;
	float sumErrorWeights;
};

In my blueprint:

But when I try to use it in the editor:

It’s 4am, I’m going to sleep. I appreciate any help that may come.

2 posts - 1 participant