How to get Actor Class from Object Class?

Hello there,

I’m building an editor utility widget to quickly open and select blueprints.

I created a function so you only have to specify the Blueprint for each button. The idea is to

a: click on a button to open the blueprint (this works fine)

b: shift click on the button to select all instances of that blueprint in the world outliner

Unfortunately using “Cast to Actor Class” from my object references class always fails and I cant think of another way.
Any help would be much appreciated.

1 Like

I think you should be able to plug the output of get class in directly, no?

What class is ‘BP Control’ inheriting from? It is used as Object parameter named ‘Asset’. Is it actually inheriting from Actor?

If you expect only Actors to be passed as parameter, probably best to change ‘Asset’ type to Actor.

Unfortunately not

1 Like

‘BP_Control’ is directly inherited from ‘Actor’. But the input ‘Asset’ is an ‘Object’ so i can use the Object/Asset from the Content Browser instead of referencing a specific Actor. I’m hoping to keep this Level and Project agnostic.

In my reply to ClockworkOcean you can see the mismatch “Object Class Reference is not compatible with Actor Class Reference”

1 Like