Please select what you are reporting on:
Creative
What Type of Bug are you experiencing?
Verse
Summary
It doesn’t seem like SpawnParticleSystem is working at all.
I have made a new project and tried the official code, I have tried it with my current project with my own code. I tried it with existing particle systems that all work correctly in game when placed manually. I tried it with new particle systems that are just simple looping default particles. I have tried it with using a variable for the particle system or just using the example and using the properly exposed assets in the Assets.digest.verse and reference it directly.
I don’t receive any errors, just nothing ever gets spawned. I have checked the spawn locations and made sure all the functions are running with print statements but no particles are spawned.
Steps to Reproduce
Make a new project,make a new particle system called MyVFX, make a new creative device and use the official code from the exposing assets page.
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Assets }
using { /UnrealEngine.com/Temporary/Diagnostics }
# See https://dev.epicgames.com/documentation/en-us/uefn/create-your-own-device-in-verse for how to create a verse device.
# A Verse-authored creative device that can be placed in a level
vfx_test_device := class(creative_device):
# Runs when the device is started in a running game
OnBegin<override>()<suspends>:void=
loop:
# Spawns a VFX particle system at the given Translation
MyVFX:cancelable = SpawnParticleSystem(MyParticleSystem, GetTransform().Translation)
# Let the VFX play for 3 seconds
Sleep(3.0)
# Stop the VFX
MyVFX.Cancel()
Expected Result
The expected result is the particle spawning and then getting cancelled after 3 seconds.
Observed Result
No particle system ever spawns.
Platform(s)
PC, UEFN
Additional Notes
1 post - 1 participant