Make other types (shared Pointer) accessible in blueprint?
For blueprint variables I can choose a lot of types. But how can I choose other types than the native ones (int, float etc) and UObjects (class or reference etc).
For example: I have a plugin where I can access PointClouds using the Point Cloud Library (PCL). So I use the pcl´s pointcloud type for some algorithms. Now the idea is to have a shared pointer so I can access the type within a blueprint (and assign it to a variable eg).
My first attempt was to encapsulate the pointer within a USTRUCT, but that does not compile:
Any suggestions please?
So, after a bit trying I decided to change it to an interface kind of access.
I wrote a UInterface class (so it can be seen in Blueprints), which tells the inheritand class to provide a getter function to the pointcloud pointer:
So, one component has a UFunction consuming those interfaces:
And in my Blueprint I can choose any component that implements the interface can be chosen:
answered Oct 19 '18 at 09:13 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here