VL class inheritance

noob question here: is there classic class inheritance in VL? So I’d have my virtual functions and base properties etc. While I’m here asking basic questions which I couldn’t find in docs:

  • How can I specify the type of a property on an interface? I cannot create a pad of it in the interface patch.
  • How can I manually specify the type(s) of a generic node without the need to connect something to its pins? Especially with casting objects to sub-classes

Hi, there is no inheritance in general way, there is similar mechanism but not exact inheritance, let me do small brief on vl for programmers:

calss-record-inteface.vl (23.6 KB)

oh excellent, thanks for the video tutorial! I see so “types” or classes rather revolve around pin compatibility in VL? And then classes cannot have bases, they need to rely on composition. However they can do interfaces still and so manipulating polymorphic data is only possible with interfaces in VL?

To answer my own question, set an IO Box for desired type and connect to generic pin

Jup something like that…

Im mostly using c# for bases, the problem with VL entries it’s kind of hard that they are not available from c# side…

Like, as example there are serializers but, I think built in work for patched stuff and serialising over polymorphic might be a problem… not sure needs testing.

For polymorphism yea in general interfaces, but it’s hard to maintain.

Generics you can type in TSomething and then pin is TSomething it’s bit bugged but works…

In Unreal if we needed to interact with Blueprint classes in C++ we used reflection, I guess same applies with VL types (through IVLObject and IVLTypeInfo I guess)