Verse Library verse

01 Fragment

Iterates through nested light components and disables them to turn off a collected pickup.

verse-library/verse-scene-graph-build-a-system/01-fragment.verse

# Turn off every light_component nested under this entity.
for:
    Light : Entity.FindDescendantComponents(light_component)
do:
    Light.Disable()

Comments

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