Classes

Many real-world objects can be classified by the same type, even though they are unique. As a very simple example, we can think of a person class. In this class, we can have attributes such as name and height, and Actions such as move and eat. Using the person class, we can create several objects of this class. Each object represents a person with different values in their name and height attributes.

When we create a Blueprint, we are creating a new class that can be used to create objects in the Unreal Engine. As the following screenshot shows, the option that appears when creating a new Blueprint asset is Blueprint Class:

There is another concept, known as encapsulation that consists of hiding the complexity of a class. The variables and Functions of a Blueprint class can be private, which means that they can only be accessed and modified in the Blueprint class where they were created. The public variables and Functions are those that can be accessed by other Blueprint classes.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset