I have a cpp object with a float(or double) array, I need blueprint to construct it and pass to cpp. But I get some issue when handling this.
First I want ExposeOnSpawn so in blueprint they can pass the value directly(and avoid forget to set the value). But the double with ExposeOnSpawn comes to UHT error “Property cannot be exposed”, so I have to use TArray to compile.
Then I found the ConstructObjectFromClass node didn’t do the convertion for each array element, it just read the double array memory and treat it as float array:
3 double:
treat 1.5 double as 3 float:
Now I have to giveup ExposeOnSpawn and set value after ConstructObjectFromClass manually.
Can Epic fix this issue? Either make double available for ExposeOnSpawn or convert array element in ConstructObjectFromClass woule be great.