How to check what's the class of an object?

Hi Slavq

Use the GetClass node and then plug that into the IsChild node;

Hope that helps!

Let’s say that there is A class and B, C, D child classes who inherits from A. In A class there is “DoSomething” function. Now, if the object will be from B class, i want to do some stuff in this function, if from C class, then do some other stuff, etc.

How to check it properly? I’ve made something like this, but it gives me an “Dirty; needs to be recompiled”:

… Or maybe i should try something like: Self → GetClass and if this Equals(ClassB), then do something, else do other thing?

1 Like

Thanks :slight_smile: