Graph Interface

Like a class graph, Interface can have functions, and properties, as its members. But interfaces will contain only the declaration of the members. The implementation of the interface’s members will be given by graphs who implements the interface.

  • An interface is typically like an abstract graphs with only abstract members. Any graphs that implements the interface must implement all its members.
  • An interface can’t be instantiated directly. Its members are implemented by any graphs that implements the interface.
  • A graphs can implement multiple interfaces.

This is a special interface that’s only work for Runtime Graphs ( Class Component, Class Asset, Component Singleton ) because the c# interfaces is not allowed for Runtime Graphs. If you want to use c# interface please use C# Graphs ( C# Class and C# Struct ).

 

Creating Graph Interface

New Graph Interface can be created easily, simply click ‘create’ in project panel and navigate to ‘uNode’ and click ‘Graph Interface’.

Was this helpful to you?