# USTRUCT works in blueprint not in editor

**URL:** <https://forums.unrealengine.com/t/ustruct-works-in-blueprint-not-in-editor/477118>\
**Category:** Editor Scripting\
**Tags:** Struct, details-panel, ustruct, unreal-engine, editor, question, CPP\
**Created:** [January 12, 2021, 4:03am UTC](https://forums.unrealengine.com/t/ustruct-works-in-blueprint-not-in-editor/477118 "2021-01-12T04:03:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AgentArachnid66](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AgentArachnid66](https://forums.unrealengine.com/u/AgentArachnid66)\
**Post date:** [January 12, 2021, 4:03am UTC](https://forums.unrealengine.com/t/ustruct-works-in-blueprint-not-in-editor/477118/1 "2021-01-12T04:03:25Z")

</div>

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:

![326984-neuron.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/9/4/09486adc5072964f4ea67ab11a99376843a0c552.png)

But when I try to use it in the editor:

![326985-neuron1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/b/2/0b2fe55178629781fa22a3ffb76ae06a22e99919.png)

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

---

<div class="post-metadata">

**Author:** ![AgentArachnid66](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AgentArachnid66](https://forums.unrealengine.com/u/AgentArachnid66)\
**Post date:** [January 12, 2021, 6:25pm UTC](https://forums.unrealengine.com/t/ustruct-works-in-blueprint-not-in-editor/477118/2 "2021-01-12T18:25:57Z")

</div>

As always, restarting the editor fixed it. Number 1 rule kids, if the editor is playing up with no obvious cause, restarting it is the first thing you should do.
