# BaseEntity

### Introduction

The BaseEntity property controls the inheritance of a given Entity. An Entity can inherit from another Entity, or it can inherit from a FlatRedBall type, like Sprite.

![](/files/Kokja2gcYixc1RM9CtUu)

### Inheriting from other Entities

Entities can inherit from other Entities. Entity inheritance is the current recommended approach for creating a variety of common entities, such as multiple Enemy types in a game. To do this:

1. Click on the Add Entity quick action

   ![](/files/mDdiaDRJj2tIqTnh1ilj)
2. Use the **Base Entity** dropdown to select the base entity. Note that when a Base Entity is selected, most of the options are hidden since the new entity inherits those properties from its base.

   <figure><img src="/files/JDPDJ8ZK2YqVKc7c7FiE" alt=""><figcaption></figcaption></figure>
3. Click **OK**

The new entity now inherits from the selected **Base Entity.**

![](/files/k1DqYlIKhC8CItwF6E1r)

#### Inheriting when Creating a New Entity

A new entity can be created as a derived entity in the new entity window.

### Inheriting from FlatRedBall Types

Entities can inherit from FlatRedBall types, such as Sprites. By default Entities inherit from PositionedObject, but this inheritance can be modified through Glue. The reason this feature exists is primarily to improve performance and reduce memory consumption. For more information, see the [Inheriting from FlatRedBall Types tutorial](/flatredball/glue-reference/entities/glue-tutorials-inheriting-from-flatredball-types.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.flatredball.com/flatredball/glue-reference/entities/glue-reference-baseentity.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
