Navigation
API > API/Plugins > API/Plugins/WaveFunctionCollapse
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UBlueprintFunctionLibrary
- UWaveFunctionCollapseBPLibrary
References
| Module | WaveFunctionCollapse |
| Header | /Engine/Plugins/Experimental/WaveFunctionCollapse/Source/WaveFunctionCollapse/Public/WaveFunctionCollapseBPLibrary.h |
| Include | #include "WaveFunctionCollapseBPLibrary.h" |
Syntax
UCLASS&40;&41;
class UWaveFunctionCollapseBPLibrary : public UBlueprintFunctionLibrary
Constructors
| Type | Name | Description | |
|---|---|---|---|
UWaveFunctionCollapseBPLibrary
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddToAdjacencyToOptionsMap
(
FWaveFunctionCollapseAdjacencyToOptionsMap& AdjacencyToOptionsMap, |
Add an entry to an AdjacencyToOptionsMap | |
| FWaveFunctionCollapseTile | BuildInitialTile
(
UWaveFunctionCollapseModel* WFCModel |
Builds the initial tile which adds every unique option in a model to its RemainingOptions array and calculates its entropy | |
| float | CalculateShannonEntropy
(
const TArray< FWaveFunctionCollapseOption >& Options, |
Calculates Shannon Entropy from an array of options and a given model | |
| void | DeriveModelFromActors
(
const TArray< AActor* >& Actors, |
Derive constraints from a given layout of actors and append them to a model | |
| TMap< int32, EWaveFunctionCollapseAdjacency > | GetAdjacentIndices
(
int32 Index, |
Get adjacent indices of a given index and its adjacency | |
| TMap< FIntVector, EWaveFunctionCollapseAdjacency > | GetAdjacentPositions
(
FIntVector Position, |
Get adjacent positions of a given position and its adjacency | |
| EWaveFunctionCollapseAdjacency | GetNextZAxisClockwiseAdjacency
(
EWaveFunctionCollapseAdjacency Adjacency |
Get the next adjacency in clockwise direction on a Z-axis for a given adjacency. | |
| EWaveFunctionCollapseAdjacency | GetOppositeAdjacency
(
EWaveFunctionCollapseAdjacency Adjacency |
Get the opposite adjacency for a given adjacency. | |
| bool | GetPositionToOptionMapFromActor
(
AActor* Actor, |
Get PositionToOptionsMap from a given actor that has ISM components. | |
| FIntVector | IndexAsPosition
(
int32 Index, |
Convert 2D array index to 3D grid position | |
| bool | IsOptionContained
(
const FWaveFunctionCollapseOption& Option, |
Is the option contained in the given options array | |
| bool | IsSoftObjPathEqual
(
const FSoftObjectPath& SoftObjectPathA, |
||
| FWaveFunctionCollapseOption | Make FWaveFunctionCollapseOption of type: BorderOption | ||
| FWaveFunctionCollapseOption | Make FWaveFunctionCollapseOption of type: EmptyOption | ||
| FWaveFunctionCollapseOption | Make FWaveFunctionCollapseOption of type: VoidOption | ||
| int32 | PositionAsIndex
(
FIntVector Position, |
Convert 3D grid position to 2D array index | |
| FRotator | SanitizeRotator
(
FRotator Rotator |
Converts Rotator to Matrix and back to sanitize multiple representations of the same rotation to a common Rotator value |