I have a map using world partition, within the map I have placed in a grid a pcg blueprint (all using the same blueprint named pcg_bp). The pcg is set to generate at runtime and has “is partitioned” checked.
I am making a resource tracking system where you remove a resource from the map, it creates point data which the pcg graph looks at and if there is point data present, then it doesn’t spawn anything at those points using a difference node.
What I have done in the past is done a line trace and then from the hit actor, I do a cast to “pcg_bp”, which has the function to create the point data, then using the hit component i do a cast to instancedstaticmeshcomponent which i get the instance transform from to make the pcg point data.
The problem at the moment is that the line trace seems to only be able to get PCGRuntimePartitionGridActor from the hit actor. I have no clue how to get the correct “pcg_bp” out of this. So far the only thing that works is casting to PCGPartitionActor, but then how do i get the “pcg_bp” from that? The only things that I could find that might make sense is “get original component”, but no clue how to use it.
Anyone have any thoughts?