The prefab for the masculine large body type. To make an outfit with this body type, make a prefab in the editor based on it, remove its existing mesh component (a placeholder cube), add a mesh component with your mesh, then subclass fort_outfit_cosmetic in Verse and map DefaultCosmeticStyle to your prefab in Styles. An entity has only one component of each type, so the placeholder has to be removed before the new mesh component is added.
Verse using statement |
using { /Fortnite.com/Characters } |
Inheritance Hierarchy
This class is derived from the following hierarchy, starting with entity:
| Name | Description |
|---|---|
entity |
Entities are the base object in the SceneGraph.
In the SceneGraph system a class that derives from While you can create base prefabs for common game object types like a vehicle or character, we highly recommended that you do not add code directly to the entity class, and instead keep logic in components. Keeping logic and data in components allows you to restructure your prefabs throughout production of your experience, without needing to massively refactor your class structure. |
cosmetic_prefab |
The entity prefab for a cosmetic. Its icon_component and description_component provide the cosmetic's icon, name and descriptions. |
fort_cosmetic_prefab |
The entity prefab for a Fortnite cosmetic: a cosmetic_prefab whose cosmetic component is a fort_cosmetic_component. |
fort_outfit_cosmetic_prefab |
The entity prefab for a Fortnite outfit: a fort_cosmetic_prefab whose cosmetic component is a fort_outfit_cosmetic_component. |
Members
This class has both data members and functions.
Data
| Data Member Name | Type | Description |
|---|---|---|
CosmeticComponent |
fort_outfit_cosmetic_component |
|
CosmeticComponent |
fort_cosmetic_component |
|
CosmeticComponent |
cosmetic_component |
Marks the entity as a cosmetic. |
DescriptionComponent |
description_component |
|
DescriptionComponent |
description_component |
Provides the name and descriptions of this cosmetic. |
IconComponent |
icon_component |
Provides the icon representing this cosmetic. |
MeshComponent |
mesh_component |
Functions
| Function Name | Description |
|---|---|
AddComponents |
Adds the provided components to the entity.
|
AddEntities |
Adds the provided entities as children of this entity.
|
AddTag |
Adds a |
ContainsAllTags |
Fails if at least one type in |
ContainsAnyTag |
Succeeds if at least of the types in |
ContainsTag |
Succeeds if at least one tag of type |
GetComponent |
Succeeds and returns the child component of type |
GetComponents |
Returns the child components belonging to this entity which are accessible from the calling context. |
GetEntities |
Returns the child entities belonging to this entity which are accessible from the calling context.
|
GetParent |
Returns the parent entity of this entity.
|
GetTransform |
Returns the global transform of this entity so that it can be used directly as the origin of another entity. See |
RemoveAllTags |
Removes all tag instances of type |
RemoveAllTagsExcept |
Removes all tag instances that are not of type |
RemoveAllTagsExcept |
Removes all tag instances that are not of any of the types in |
RemoveFromParent |
Removes this entity from its parent. This is used to remove entities from the scene.
|
RemoveTag |
Removes the tag instance associated with the |
SendDown |
Send a scene event to this entity and then down the hierarchy. First, SendDown/OnReceive will be invoked on each component on this entity. Next, SendDown will be invoked on each child entity. Consuming the event at any point will halt propagation. Returns true if any participant consumed the event. |
SendUp |
Send a scene event to this entity and then up the hierarchy. First, SendDown/OnReceive will be invoked on each component on this entity. Next, SendUp will be invoked on this entity's parent. Consuming the event at any point will halt propagation. Returns true if any participant consumed the event. |