/* * SPDX-License-Identifier: AGPL-3.0-or-later * Copyright (C) 2025 Sergej Görzen * This file is part of OmiLAXR. */ using System.ComponentModel; using OmiLAXR.Components; using UnityEngine; namespace OmiLAXR.Listeners { /// /// Specialized listener for detecting and providing TransformWatcher components to the pipeline. /// TransformWatcher components monitor position, rotation, and scale changes of GameObjects, /// making this listener essential for tracking object movement and spatial analytics. /// Used in scenarios involving object manipulation, physics interactions, or spatial learning. /// [AddComponentMenu("OmiLAXR / 1) Listeners / Objects Listener")] [Description("Provides all components to pipeline.")] public sealed class TransformWatcherListener : Listener { /// /// Initiates detection of all TransformWatcher components in the scene. /// Finds all existing TransformWatcher components and reports them to the pipeline /// for spatial tracking and movement analytics. /// public override void StartListening() { // Find all TransformWatcher components and report them to the pipeline Found(FindObjects()); } } }