UMG Collection Effect
Unreal Engine Tutorial
Unreal Engine Tutorial
After installing the widget, you will be able to call 3 new functions.
Collect Widget Location - used to move the effect from widget to widget
Collect Mouse Location - used to move the effect from the location of the mouse cursor to the widget
Collect World Location - used to move the effect from a location in world space to a widget
StartWidget - Widget where the particles will start moving.
WorldLocation - The world coordinate where the particles will start moving.
EndWidget - Widget where particles will end their motion.
CoinsAmount - Number of particles (artificially limited to a maximum of 30)
CoinsRandomizeStartLocation - The first part of the animation is scattering particles around, you can set the maximum distance that the particles will be scattered.
RandomMaxDelayCoins - The second part of the animation, this is a flight to the finish line, specify here the maximum delay number before the flight starts from 0 to your number.
TextureSize - The size of the particle.
Texture - The texture of the particle.
FirstAnimationDuration - The duration, in seconds, of the first part of the animation.
SecondAnimationDuration - The duration in seconds of the second part of the animation.
IsPlayCollectSound - Whether to play a sound when a particle arrives at the finish line.
CollectSound - The sound when the particle arrives at the finish line.
IsPlayGetSound - Whether to play a sound when the effect starts.
GetSound - Sound when the effect starts.
IsUseCounter - Whether to use a counter (attention the counter is used only for display, do not use it as the main place for storing data)
WCounter - Counter widget.
CounterAddAmount - What number to add to the counter. (if you need to subtract, then you can use the example below)
IsRoundedCounter - whether to round off the counter result (1000 = 1K etc.)
For correct operation, you need to call the script from the screenshot once at the beginning of the game.
If you need to correct the counter number or subtract the number, then use this script.
If you need to remove the limitation on the number of particles, then use the screenshot above.
If you have any questions, please write to me by mail: myalreadyday@gmail.com