|
Window Framework for UI Toolkit v2.0.x
|
Resolves already ordered authoritative root-token declarations for editor preparation. More...
Static Public Member Functions | |
| static bool | TryResolve (UnityEngine.UIElements.ThemeStyleSheet source, string fingerprint, IReadOnlyDictionary< string, string > tokens, Func< string, Texture2D > resolveImage, out PreparedThemeSnapshot snapshot, out string error) |
| Converts supported root values into a complete serializable snapshot. | |
| static bool | TryResolveExpression (string expression, IReadOnlyDictionary< string, string > tokens, out string value) |
| Resolves whole-value variable chains and nested fallbacks, refusing cycles. | |
| static bool | TryResolveWithImages (UnityEngine.UIElements.ThemeStyleSheet source, string fingerprint, IReadOnlyDictionary< string, string > tokens, Func< string, UnityEngine.Object > resolveImage, out PreparedThemeSnapshot snapshot, out string error) |
| Prepares referenced raster or automatically gated compiled vector image assets. | |
Static Private Member Functions | |
| static bool | TryColor (string text, out Color color) |
| static bool | TryDurationSeconds (string text, out float value) |
| static bool | TryPixelNumber (string text, out float value) |
| static bool | TryResolveExpression (string expression, IReadOnlyDictionary< string, string > tokens, HashSet< string > stack, int depth, out string value) |
Resolves already ordered authoritative root-token declarations for editor preparation.
This is deliberately not a general USS cascade interpreter. The caller supplies root declarations in import/cascade order after ownership and selector analysis. No files are read or written here. Conditional/selective declarations and arbitrary layout rules require separate analysis and cannot be represented by pretending they are global root defaults.
|
inlinestaticprivate |

|
inlinestaticprivate |

|
inlinestaticprivate |

|
inlinestatic |
Converts supported root values into a complete serializable snapshot.
| source | Matching authoritative theme reference. |
| fingerprint | Dependency fingerprint from preparation. |
| tokens | Ordered-cascade final token expressions, including primitives. |
| resolveImage | Editor-owned reference resolver; null for explicit none only. |
| snapshot | Derived entries plus blocking report on failure. |
| error | Bounded missing/unsupported key report. |

|
inlinestaticprivate |

|
inlinestatic |
Resolves whole-value variable chains and nested fallbacks, refusing cycles.
| expression | Literal or complete var expression, at most 4096 characters per step. |
| tokens | Final ordinal root expressions; null permits literals/missing-key fallback only. |
| value | Trimmed resolved expression on success, not necessarily a valid color/image/number. |
Existing invalid/cyclic variables do not automatically use their fallback. Embedded var interpolation is refused. Type/catalog validation happens in TryResolveWithImages.


|
inlinestatic |
Prepares referenced raster or automatically gated compiled vector image assets.
| source | Authoritative stylesheet. |
| fingerprint | Dependency fingerprint. |
| tokens | Final ordered root expressions. |
| resolveImage | Trusted editor asset resolver; no player filesystem access. |
| snapshot | Complete prepared output. |
| error | Bounded unsupported report. |

