Blueprint & API Usage
The Chroma SDK supports playing premade Chroma animations which are placed in the Content
folder or subfolders within. Chroma animations can be created in the web authoring tools, or dynamically created and modified using the API. Call PlayAnimation() to play Chroma animations with or without looping. Animations have a device category, and playing an animation will stop an existing animation from playing before playing the new animation for the given device category. The animation name is file path of the Chroma animation relative to the Content
folder.
bool loop = false;
TArray deviceCategories =
{
"ChromaLink",
"Headset",
"Keyboard",
"Keypad",
"Mouse",
"Mousepad",
};
for (int i = 0; i < deviceCategories.Num(); ++i)
{
FString animationName = "Animations/Spiral_" + deviceCategories[i] + ".chroma";
UChromaSDKPluginBPLibrary::PlayAnimationName(animationName, loop);
}
Still stuck? Come to our Discord and we will help you out!