Provides methods to perform a non-persistent, live preview of a spatial relationship defined by LemmingRelationshipInfo. Useful for UI remapping scenarios where users adjust settings and need immediate feedback without altering the original ScriptableObject.
More...
|
| struct | Result |
| | Holds the results of a live relationship computation, including raw, normalized, curved values and boundary status flags. More...
|
Provides methods to perform a non-persistent, live preview of a spatial relationship defined by LemmingRelationshipInfo. Useful for UI remapping scenarios where users adjust settings and need immediate feedback without altering the original ScriptableObject.
◆ Compute()
Performs a one-off preview calculation using the supplied info without mutating any underlying ScriptableObject or runtime data.
- Parameters
-
| info | A snapshot of user-adjustable settings and references captured in a LemmingRelationshipInfo struct. |
| settings | Optional settings defined by a LemmingRelationSetting struct. if you do not want to use the settings defined by the original relationship |
- Returns
- A Result containing raw, normalized, curved values and status flags (Over/Under/InRange).
◆ ComputeMetric< TEnum >() [1/2]
Performs a one-off preview computation using a specific metric and optional overrides, without modifying the underlying relationship or asset data.
- Template Parameters
-
- Parameters
-
| info | A read-only struct containing snapshot data from a LemmingRelationship. This includes references, family type, curve, and bounds. |
| metric | The metric to evaluate. This overrides the metric stored in info . |
| customMin | Optional minimum bound for normalization. If null, uses info .Min. |
| customMax | Optional maximum bound for normalization. If null, uses info .Max. |
| setting | Optional parameter structure that provides evaluation settings such as axis, threshold, etc. See LemmingRelationSetting for more. |
- Returns
- A Result containing the raw value, normalized and curved outputs, and status flags indicating whether the result is over, under, or in range.
◆ ComputeMetric< TEnum >() [2/2]
Compute a preview result using a specific metric override.
- Template Parameters
-
- Parameters
-
| info | Base relationship info. |
| metric | The specific metric you want to preview. |
- Returns
- Preview result with raw/normalized/curved/etc.
The documentation for this class was generated from the following file:
- Assets/Lemmings/Scripts/Namespace/LemmingUtilities.cs