Module |
|
Header |
/Engine/Plugins/VirtualProduction/DMX/DMXEngine/Source/DMXEditor/Public/DMXEditorUtils.h |
Include |
#include "DMXEditorUtils.h" |
Source |
/Engine/Plugins/VirtualProduction/DMX/DMXEngine/Source/DMXEditor/Private/DMXEditorUtils.cpp |
static FUnassignedPatchesArray AutoAssignedAddresses
(
const TArray< UDMXEntityFixturePatch * > & ChangedFixturePatches,
int32 MinimumAddress,
bool bCanChangePatchUniverses
)
Updates starting addresses for fixture patches that have bAutoAssignAddress set, ignores others. Note, patches all have to reside in the same library.
The caller is responsible to call Modify on the patches and register undo/redo.
If bCanChangePatchUniverses = true, this function will assign patches that do not fit into the existing universes to the next universe. MinimumAddress is ignored for the new universe, i.e. we start placing remaining patches at position 1.
Patches that were not assigned.
Parameter |
Description |
---|---|
ChangedFixturePatches |
The patches that want their channels to be auto assigned |
MinimumAddress |
All patches must be placed after this address |
bCanChangePatchUniverses |
Whether we are allowed to move a patch to another universe if the assigned universe has no space. |