NoahUEFN
(NoahUEFN)
1
How to Destory a Spawned Creative Prop after you Spawned it with the SpawnProp() Function?
SpawnedProp := SpawnProp(Element, SpawnPosition, IdentityRotation())
I´ve seen a Post from “Rodney_Houle” (Example on how to Spawn and Destroy Props using Verse) from November 2022 in which he used .Dispose() function but that sadly dosen´t work anymore.
Klandar
(Tim.Tillotson)
2
Sounds like a bug. Dispose() should work. I’ll have our team take a look.
1 Like
NoahUEFN
(NoahUEFN)
3
Thanks for the reply! Please keep me updated if you know further information about this thanks!
Klandar
(Tim.Tillotson)
4
What type of props are you trying to dispose?
NoahUEFN
(NoahUEFN)
6
nvm i´m using the “SpawnedProp” referece from the SpawnProp() Function so its a spawn_prop_result
Klandar
(Tim.Tillotson)
7
Can you try something like this:
SpawnResult := SpawnProp(MyAsset, MySpawnPosition, MySpawnRotation)
if (ResultProp := SpawnResult(0)?):
ResultProp.Dispose()
2 Likes
NoahUEFN
(NoahUEFN)
8
Omg my bad i used the SpawnedProp for the Name in the if statement thanks for the hint it works now and thanks for helping/finding this problem.