Contents

findEntity(id:)

Returns Entity with the given Entity.ID in the Scene.

Declaration

@MainActor @preconcurrency func findEntity(id: Entity.ID) -> Entity?

Parameters

  • id:

    Entity.ID obtained from Entity.id

Return Value

Entity with the given Entity.ID, or nil if no such Entity is found in the Scene.

Discussion

See Also

Finding entities