Navigation
API > API/Plugins > API/Plugins/SVGImporter
References
| Module | SVGImporter |
| Header | /Engine/Plugins/Experimental/SVGImporter/Source/SVGImporter/Public/SVGImporterUtils.h |
| Include | #include "SVGImporterUtils.h" |
Syntax
class FSVGImporterUtils
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | BakeSVGActorToBlueprint
(
const ASVGActor* InSVGActorToBake, |
Create Blueprint from SVG Actor. | |
| UStaticMesh * | BakeSVGDynamicMeshToStaticMesh
(
USVGDynamicMeshComponent* InSVGDynamicMeshToBake, |
Creates a Static Mesh Asset starting from the specified SVG Dynamic Mesh Component | |
| ASVGJoinedShapesActor * | ConsolidateSVGActor
(
ASVGActor* InSVGActor |
Merges all SVG Shapes of this Actor into a single Actor with a single Shape. | |
| bool | ConvertSVGSplineToPolyLine
(
const USplineComponent* InSplineComponent, |
Given a threshold, returns a list of vertices along the specified spline that, treated as a list of segments (polyline), matches the spline shape. | |
| UTexture2D * | CreateSVGTexture
(
const FString& InSVGString, |
Creates a Texture 2D from the specified SVG Text Buffer. Uses the nanosvg parser and rasterizer | |
| FLinearColor | GetAverageColor
(
const TArray< FLinearColor >& InColors |
Computes a simple average of the provided Linear Colors | |
| FColor | GetColorFromSVGString
(
FString InColorString |
Extracts a color from SVG color string | |
| ASVGJoinedShapesActor * | JoinSVGDynamicMeshOwners
(
const TArray< ASVGDynamicMeshesContainerActor* >& InDynamicSVGShapesOwners |
Joins the SVG Shapes of 2 or more Actors of type ASVGDynamicMeshesOwnerActor onto a single ASVGJoinedShapesActor | |
| void | RotateAroundCustomPivot
(
FVector& OutPointToRotate, |
Rotates an input point around a custom pivot | |
| bool | SetSVGMatrixFromTransformString
(
const FString& InTransformString, |
Sets an SVG Matrix based on the specified SVG Transform string | |
| bool | ShouldPolygonBeDrawn
(
const FSVGPathPolygon& ShapeToCheck, |
Evaluates if the specified ShapeToCheck is to be drawn or not (e.g. actual shape or hole to be cut) The value nonzero determines the "insideness" of a point in the shape by drawing a ray from that point to infinity in any direction, and then examining the places where a segment of the shape crosses the ray. | |
| ASVGShapesParentActor * | SplitSVGActor
(
ASVGActor* InSVGActor |
Splits the specified SVG Actor into multiple actors. | |
| TArray< FSVGStyle > | StylesFromCSS
(
FString InString |
Extracts SVG Style from a CSS style string |
Constants
| Name | Description |
|---|---|
| SVGScaleFactor |