Navigation
API > API/Plugins > API/Plugins/RazerChromaDevices > API/Plugins/RazerChromaDevices/URazerChromaFunctionLibrary
Description
Attempts to play the given Chroma animation file.
If the Chroma Runtime is not available, nothing will happen.
| Name | PlayChromaAnimation |
| Type | function |
| Header File | /Engine/Plugins/Experimental/RazerChromaDevices/Source/RazerChromaDevices/Public/RazerChromaFunctionLibrary.h |
| Include Path | #include "RazerChromaFunctionLibrary.h" |
| Source | /Engine/Plugins/Experimental/RazerChromaDevices/Source/RazerChromaDevices/Private/RazerChromaFunctionLibrary.cpp |
UFUNCTION (BlueprintCallable, BlueprintCosmetic, Category="Razer Chroma",
Meta=(ReturnDisplayName="Was Successful"))
static bool PlayChromaAnimation
(
const URazerChromaAnimationAsset * AnimToPlay,
const bool bLooping
)
True if successfully played, false otherwise.
Parameters
| Name | Remarks |
|---|---|
| AnimToPlay | The Razer Chroma animation asset. |
| bLooping | If true, this animation will loop (start re-playing after it finishes) |