This chapter shows you how to write your own UInterfaces, and demonstrates how to take advantage of them within C++ to minimize class coupling and help keep your code clean. The following recipes will be covered in this chapter:
Creating a
UInterface
Implementing a
UInterface
on an objectChecking if a class implements a
UInterface
Casting to a
UInterface
implemented in native codeCalling native
UInterface
functions from C++Inheriting
UInterface
from one anotherOverriding
UInterface
functions in C++Exposing
UInterface
methods to Blueprint from a native base classImplementing
UInterface
functions in BlueprintCreating C++
UInterface
function implementations that can be overridden in BlueprintCalling Blueprint-defined interface functions from C++
Implementing a simple interaction system with UInterfaces