Contents

init(scene:)

Creates a new system.

Declaration

@MainActor @preconcurrency init(scene: Scene)

Parameters

  • scene:

    The scene this system affects.

Mentioned in

Discussion

There’s no need to instantiate your own systems, so don’t call this method. Instead, register your system with RealityKit by calling registerSystem(). RealityKit automatically creates an instance of every registered system for every scene.