Skip to main content

Accumulation pattern

Please read the plugin documentation beforehand.

Examples are available for each compatible version of Unreal Engine in the Plugin Sample repository

WARNING

Before launching any example, the project source files must be regenerated to allow Unreal to place the plugin DLLs in the right place (or it will crash when the example is played).

To do this : In Windows Content Explorer, right-click on the .uproject file and select Generate Visual Studio Project Files.

SkineticDeviceSetting


The example "7_Accumulation" is an illustration of the accumulation strategy feature.

Two drones shoot the target representing Skinetic with some dispersion and a random delay between each shot.

Two similar patterns (on 4 and 2 tracks) are provided and one is set as a fallback to the other. Playing Type is set to "Pool".

Skinetic handling is done integrally in the 7_Accumulation_Capsule BP and its parent blueprint. (located in the SkineticSDK Content → 7_Accumulation folder)

Connection, Disconnection and Pattern loading

  • As in each of the examples provided, a Skinetic Device Data Asset is created and set as the default device in Project Settings > Plugins > Skinetic.

    SkineticDeviceSetting

  • As these example blueprints inherit from the 5_Transformation example blueprints, connection, disconnection and pattern loading are handled exactly as in the 5_Transformation example blueprints.

UI

The simple UI provides 2 spinboxes to handle the Time Window and Max Accumulation parameters of the SetAccumulationPattern node. This node is called each time a change is made to these 2 values. SetAccumulationPattern will overwrite previous settings if called on the same primary pattern.

Accu UI

  • Time Window allows you to set the amount of time in seconds that the fallback pattern will be played instead of the primary pattern.

  • Max Accumulation allows you to set the number of times this fallback pattern will be triggered in the time window.

    UI

See the Accumulation Strategy Feature section of the plugin documentation for more information.