Is there a way to restrict an Actor's variable to only be set on spawn?

I’m looking for the same functionality that is provided with a lot of OOP languages that support class constructors. I’d like to set an Actor’s variable to a struct reference on spawn, while not allowing the outside code to edit the same variable after the Actor is spawned.

Make it private. Select it for expose on spawn.

Make a function that returns it’s value.

When I do that it requires the variable to be set as Editable otherwise it throws warnings. Is there a way to do this without triggering warnings?

Ooh, I see, I got it to work! Thanks :slight_smile: