ScriptableFactoryMonitor

MonoBehaviour component attached to each factory's runtime GameObject. Provides Inspector visibility into the factory's ScriptableObject state using Odin's InlineEditor, allowing developers to inspect and debug factory configuration at runtime.

Definition

Namespace: Paragon.Core.ScriptableFactory Assembly: Paragon.dll

[HideMonoScript]
public class ScriptableFactoryMonitor : MonoBehaviour

Inheritance: MonoBehaviourScriptableFactoryMonitor

Remarks

Monitors are created automatically by ScriptableFactoryManager.InitializeMonitors() during startup. You typically do not need to create them manually.

The [HideMonoScript] attribute hides the script reference in the Inspector, keeping the view clean and focused on the factory's inline data.

Quick Lookup

Goal
How

Create a monitor

ScriptableFactoryMonitor.Initialize(factory)

Access the factory

monitor.Factory

Properties

Factory

Returns the ScriptableFactory this monitor is observing.

Displayed in the Inspector via [ShowInInspector, InlineEditor(CompletelyHidden)] so the factory's fields are shown inline without a separate object field.

Methods

Initialize

Static factory method that creates a ScriptableFactoryMonitor on the given factory's runtime GameObject.

Parameter
Type
Description

factory

IScriptableFactory

The factory to monitor. Must have a gameObject (created during factory initialization).

Returns: The newly created ScriptableFactoryMonitor component.

See Also

Last updated