Thanks for this, @Cardin ! Tested it and it works for me. Itâs very different from another working method I was using, which used to be in the UEFN docs. Actually yours is better because itâs simpler. Where did you find the instructions you used? I wish Epic would standardize these and publish them in the docs . I requested it in Feedback if anyone wants to upvote.
I understand Epicâs stated reasoning (Blueprints wonât be in Public Beta). However, in a creator community, when there is no official public source for a crucial piece of info, that info (or even incorrect/conflicting versions of it) spreads through word of mouth between creators instead. Creators who donât have the social skills or time to make friends in the community are left out of the loop and their work is hampered. This preventable social dynamic could potentially turn toxic and insular as more and more creators from outside of Creative (e.g me, from Core) migrate to UEFN. Helpful, experienced creators can mitigate this by sharing info publicly, but Epic writes the docs and sets the tone.
Here are a few extra steps I remember, to make it so that players can destroy your prop and harvest resources.
-
In the Blueprintâs Details Panel, make sure âAllow Resource Dropâ and âCan be Damagedâ are checked. (They should be by default).
-
Type âresourceâ in the search bar in the Details Panel in your Blueprint window. In the dropdown menu for âResource Typeâ choose a resource that best fits your prop. Iâm choosing Wood for this example.
- In the same Details Panel, search for âattributesâ. Under Attribute Init Keys, for the Initialization Category dropdown menu choose PropWood (or PropStone or PropMetal if you choose Stone or Metal for your resource). For Initialization Subcategory choose 2 (choose 2 regardless of which resource youâre using). Do this for both Index 0 and Index 1.
- Compile and Save.
5.In the Details panel again, search for âsocket.â In the text box for âDeath Particle Socket Nameâ , type in FX_Death.
-
Compile and Save. Exit Blueprint window.
-
In your Content Browser, open the window for the Static Mesh you used. Locate the Socket Manager tab. If you donât see a Socket Manager tab, go into the toolbar and click Window > Socket Manager to add the tab.
- Open the Socket Manager tab. Click the plus sign in the right corner to add a socket. Name your socket by typing âFX_Deathâ into the text box.
- Adjust the gizmo labeled FX_Death to place it wherever you want the prop destruction particles to be spawned.
- Save static mesh. Player should be able to destroy the prop using their pickaxe, which will make the prop disappear, spawn destruction VFX/SFX and particles shaped like whichever resource you chose, and grant that resource to the playerâs inventory.
Bonus tip:
In the prop Blueprint, you can replace the default FN SFX and VFX for Death Particles, Death Sound, and Hit Sound with your own Niagara Systems or Sound Cues. I use this a lot.
Btw love the tip about adding Niagara FX as a child, I didnât know that one!