GetClass node returning Object instead of Class

When using GetClass on an actor in blueprints, it returns class ‘Object’.

The SpawnActor node take class ‘Actor’.

There is no way to go from an Actor… to the Class of the Actor in blueprint.
I think this might be a bug.

Kind of hard for me to explain. But I basically want to do what I have attached below, I just need the last connection.

Hey , Get Class returns “class ‘Object’” but your actor variable requires “class ‘Actor’”. The trick here is to cast GetClass output. Try this,

4606-casttoactor.png

I can’t find this node in 4.0.2

Sorry about that - it must have been added for 4.1 or 4.2. I’m still trying to find out when support was added, so you’ll know which release has it.

Looks like it was added for 4.1, so you should be able to use it very soon :slight_smile: