Static variables possible?

Static Const Wiki Tutorial

You can make Static Const variables, I have wiki tutorial here :slight_smile:

I am not sure if a Static TArray even makes sense by the nature of the fact that a TArray is so dynamic in its focus.

I personally just use a regular UPROPERTY() TArray and store it in my Player Controller, and access things I need via the player controller :slight_smile:

Makes it easy to then go into Blueprints and add new properties / add new entries to the TArray later in the Defaults tab :slight_smile:


1 Like