FDMXEditorUtils::AutoAssignedAddresses

Updates starting addresses for fixture patches that have bAutoAssignAddress set, ignores others.

Windows
MacOS
Linux

References

Module

DMXEditor

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

Syntax

static FUnassignedPatchesArray AutoAssignedAddresses
(
    const TArray< UDMXEntityFixturePatch * > & ChangedFixturePatches,
    int32 MinimumAddress,
    bool bCanChangePatchUniverses
)

Remarks

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.

Returns

Patches that were not assigned.

Parameters

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss