registerSystem()
Registers a system with RealityKit.
Declaration
@MainActor @preconcurrency static func registerSystem()Mentioned in
Discussion
Calling this method informs RealityKit of a system of defined behavior for its scenes. RealityKit automatically creates an instance of all registered systems for every scene and calls every registered system’s update(context:) method on every scene update.
If you call registerSystem() multiple times, RealityKit ignores additional calls after the first.