Can't change an actor var from a structure

Hi there. I made a structure with a variable of actor : object reference and i use it into a variable that im break. But i can’t set a default value inside. It’s said : Editing this value in a class default object is not allowed.
If someone knows why this variable cant be change i tata his idea :slight_smile:

Creating a structure in the editor is actually defining a composite type.

When you edit the class defaults no actors are yet instanced and no references can be taken. (hence the error) The structure values themselves are not created until an object with a variable of your custom structure type is created.

Depending on what you need this structure for you can maybe use actor class instead of actor reference. (if you need to spawn it for instance)

I wanted to spawn an actor and change the values of the variables that comes from a structure. But i found that you need to click the option to have a pin when you use the spawn actor.

But thank you for your answer.