Navigation
API > API/Plugins > API/Plugins/WaveFunctionCollapse > API/Plugins/WaveFunctionCollapse/UWaveFunctionCollapseBPLibrary
References
| Module | WaveFunctionCollapse |
| Header | /Engine/Plugins/Experimental/WaveFunctionCollapse/Source/WaveFunctionCollapse/Public/WaveFunctionCollapseBPLibrary.h |
| Include | #include "WaveFunctionCollapseBPLibrary.h" |
| Source | /Engine/Plugins/Experimental/WaveFunctionCollapse/Source/WaveFunctionCollapse/Private/WaveFunctionCollapseBPLibrary.cpp |
UFUNCTION&40;BlueprintCallable, Category&61;"WaveFunctionCollapse"&41;
static void DeriveModelFromActors
&40;
const TArray< AActor &42; > & Actors,
UWaveFunctionCollapseModel &42; WFCModel,
float TileSize,
bool bIsBorderEmptyOption,
bool bIsMinZFloorOption,
bool bUseUniformWeightDistribution,
bool bAutoDeriveZAxisRotationConstraints,
const TArray< FSoftObjectPath > & SpawnExclusionAssets,
const TArray< FSoftObjectPath > & IgnoreRotationAssets
&41;
Remarks
Derive constraints from a given layout of actors and append them to a model
Parameters
| Name | Description |
|---|---|
| Actors | array of actors to evaluate |
| WFCModel | to add constraints to |
| TileSize | distance between tiles |
| bIsBorderEmptyOption | should the border be considered EmptyOption |
| bIsMinZFloorOption | should the minimum Z actors be considered floor options (nothing can go below it) |
| bAutoDeriveZAxisRotationConstraints | should it auto derive z-axis rotational variants |
| SpawnExclusionAssets | assets to exclude when spawning |
| IgnoreRotationAssets | assets to ignore rotation variants |