Contents

init(castsShadow:)

Creates a dynamic light shadow component.

Declaration

init(castsShadow: Bool)

Parameters

  • castsShadow:

    A Boolean value that indicates whether an entity with the component casts a shadow.

Discussion

By default, the component makes an entity to stop casting shadows from dynamic lights.