Navigation
API > API/Plugins > API/Plugins/AvalancheShapes > API/Plugins/AvalancheShapes/DynamicMeshes
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- UAvaShapeDynamicMeshBase
- UAvaShape2DDynMeshBase
- UAvaShape2DArrowDynamicMesh
- UAvaShapeChevronDynamicMesh
- UAvaShapeEllipseDynamicMesh
- UAvaShapeIrregularPolygonDynamicMesh
- UAvaShapeRectangleDynamicMesh
- UAvaShapeRingDynamicMesh
- UAvaShapeRoundedPolygonDynamicMesh
- UAvaShapeLineDynamicMesh
- UAvaShapeNGonDynamicMesh
- UAvaShapeStarDynamicMesh
References
| Module | AvalancheShapes |
| Header | /Engine/Plugins/Experimental/Avalanche/Source/AvalancheShapes/Public/DynamicMeshes/AvaShape2DDynMeshBase.h |
| Include | #include "DynamicMeshes/AvaShape2DDynMeshBase.h" |
Syntax
UCLASS (MinimalAPI, ClassGroup="Shape", Abstract, BlueprintType, CustomConstructor)
class UAvaShape2DDynMeshBase : public UAvaShapeDynamicMeshBase
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bDoNotRecenterVertices | ||
| FVector2D | PixelSize2D | Pixel size of the mesh, will only be available in editor | |
| FVector2D | PreEditSize2D | ||
| FVector2D | Size2D | Total size in 2D from 0 to mesh size and not origin | |
| FVector | Size3D | Total size in 3D from 0 to mesh size and not origin, XY remapped to YZ in 3D |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UAvaShape2DDynMeshBase
(
const FVector2D& InExtent, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddTriangle
(
FAvaShapeMesh& InMesh, |
||
| void | AddTriangle
(
FAvaShapeMesh& InMesh, |
||
| bool | AddVertex
(
FAvaShapeMesh& InMesh, |
||
| bool | AddVertex
(
FAvaShapeMesh& InMesh, |
Adds an already existing vertex to the triangle queue. | |
| FAvaShapeCachedVertex2D | AddVertexCreate
(
FAvaShapeMesh& InMesh, |
||
| int32 | AddVertexRaw
(
FAvaShapeMesh& InMesh, |
For every 3rd vertex added, a new triangle is added. | |
| bool | CacheVertex
(
FAvaShapeMesh& InMesh, |
||
| int32 | CacheVertex
(
FAvaShapeMesh& InMesh, |
Adds a vertex to the Mesh. | |
| FAvaShapeCachedVertex2D | CacheVertexCreate
(
FAvaShapeMesh& InMesh, |
||
| const FVector2D & | |||
| const FVector2D & | GetSize2D () |
||
| void | SetPixelSize2D
(
const FVector2D& InPixelSize2D |
||
| void |
Overridden from UAvaShapeDynamicMeshBase
| Type | Name | Description | |
|---|---|---|---|
| bool | CreateMesh
(
FAvaShapeMesh& InMesh |
Creates the mesh and updates the local snap points. | |
| bool | CreateUVs
(
FAvaShapeMesh& InMesh, |
Override this in child classes when you create UV for a specific mesh | |
| void | Gets the bounds of the shape, override this in child classes for custom bounds Origin is the center of the box, BoxExtent is half the size, pivot is the default location of the pivot for this shape | ||
| const FVector & | GetSize3D () |
||
| void | Called once the pixel size has changed, only in editor | ||
| void | Called when all the meshes have been registered and the setup is done | ||
| void | Override this in child classes | ||
| void | Override this in child classes, for 2D and 3D shape to update the scale | ||
| void | Override in child classes, represents the mesh size |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally | |
| void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. |