Verse Library verse

09 Interacting With The Lantern

Locates lantern mesh components and applies a material instance to their lantern material slot.

extracted-snippets/documentation/en-us/fortnite/sample-tutorial-02-movement-and-interaction-in-fortnite/09-interacting-with-the-lantern.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite/sample-tutorial-02-movement-and-interaction-in-fortnite
# Local doc:  epic-docs/documentation/en-us/fortnite/sample-tutorial-02-movement-and-interaction-in-fortnite.md
# Section:    Interacting with the Lantern
MeshComponents := Entity.FindDescendantComponents(LightPost.SM_Lightpost_Lantern_01)
for (MeshComponent : MeshComponents):
set MeshComponent.M_Lantern = MaterialInstance

Comments

    Sign in to vote, comment, or suggest an edit. Sign in