This is our problem:
TestComponent has a set of variables we would like to access from other blueprints.
TestSubclassA has a ‘TestComponent with the set of variables modified’
TestSubclassB has a ‘TestComponent with the set of variables modified’
…
TestSubclassZ has a ‘TestComponent with the set of variables modified’
We would like to create a function which says “Given this class, return the values of the variables contained in TestComponent” - taking a class reference variable as input.
The TestSubclasses are unspawned when this function needs to be called, so using interfaces, construction scripts, functions called by BeginPlay etc are not an option.
Spawning an instance of the class to pull variables from its component before deleting it is not an option as this would affect many other functions in the game.
Each TestSubclass has majorly different functionality so having all inherit from the same base class is not an option.
Can anyone help with a solution?