# 3. Circular Minimap in UI Toolkit
Part of [[Minimap, Compass and Waypoints]]. Previous: [[2. Minimap Camera and Render Texture in URP]]. Next: [[4. Full-Screen World Map with Pan and Zoom]].
> [!warning] Code not compiled
> Written against the Unity 6000.5 Scripting API and Manual (`PanelRenderer.RegisterUIReloadCallback`, `Background.FromRenderTexture`, `StyleBackground(Background)`, `IStyle.rotate/translate/scale`, `UsageHints.DynamicTransform`, `GeometryChangedEvent`, `MeshGenerationContext.painter2D`, `Painter2D`, `[UxmlElement]`/`[UxmlAttribute]`, USS `overflow: hidden` masking). **Not compiled or run in the Unity Editor.** A standalone Roslyn type-check of this series' C# against the Unity 6000.5.8f1 engine assemblies, URP 17.5.0 and Input System 1.20.0 passed with no errors (2026-11-26); the Editor, UXML/USS import, the `[UxmlElement]` source generator and runtime behaviour were **not** tested.
This part assumes the PanelRenderer workflow from [[2.UI Toolkit Project Setup]] (6000.5+). On 6000.0-6000.4 use `UIDocument` and read `rootVisualElement` in `OnEnable` instead of the reload callback; everything else is the same.
## 3.1 Panel Settings and PanelRenderer
1. `Assets > Create > UI Toolkit > Panel Settings Asset` → `WayfindingPanelSettings`. Screen Space Overlay, Scale With Screen Size, reference 1920 × 1080, Match 0.5 (same settings as the HUD in [[2.UI Toolkit Project Setup]]). You can also reuse your existing HUD Panel Settings: every component that shares one asset draws into the same panel.
2. `GameObject > UI Toolkit > Panel Renderer`, name it `WayfindingHUD`, assign the Panel Settings and `Wayfinding.uxml` (below) as Source Asset.
3. The views in this series (`MinimapView`, `WorldMapView`, `CompassView`, `ScreenMarkerView`) go on this same GameObject.
## 3.2 `Wayfinding.uxml` (used by parts 3-6)
One UXML for the whole wayfinding layer. The world map starts hidden.
```xml
<ui:UXML xmlns:ui="UnityEngine.UIElements" editor-extension-mode="False">
<Style src="Wayfinding.uss" />
<ui:VisualElement name="wayfinding-root" class="wayfinding-root" picking-mode="Ignore">
<!-- Part 6: on-screen waypoint markers. First child = drawn underneath everything else. -->
<ui:VisualElement name="screen-markers" class="screen-markers" picking-mode="Ignore" />
<!-- Part 5: compass strip -->
<ui:VisualElement name="compass" class="compass" picking-mode="Ignore">
<ui:VisualElement name="compass-strip" class="compass__strip" picking-mode="Ignore" />
<ui:VisualElement name="compass-markers" class="compass__markers" picking-mode="Ignore" />
<ui:VisualElement class="compass__needle" picking-mode="Ignore" />
<ui:Label name="compass-heading" class="compass__heading" text="000" picking-mode="Ignore" />
</ui:VisualElement>
<!-- Part 3: minimap -->
<ui:VisualElement name="minimap" class="minimap" picking-mode="Ignore">
<ui:VisualElement name="minimap-mask" class="minimap__mask" picking-mode="Ignore">
<ui:VisualElement name="minimap-rotator" class="minimap__rotator" picking-mode="Ignore">
<ui:VisualElement name="minimap-image" class="minimap__image" picking-mode="Ignore" />
<ui:VisualElement name="minimap-icons" class="minimap__icons" picking-mode="Ignore" />
<ui:Label name="minimap-north" class="minimap__north" text="N" picking-mode="Ignore" />
</ui:VisualElement>
<ui:VisualElement name="minimap-player" class="minimap__player" picking-mode="Ignore" />
</ui:VisualElement>
<ui:VisualElement name="minimap-ring" class="minimap__ring" picking-mode="Ignore" />
</ui:VisualElement>
<!-- Part 4: full-screen world map (receives pointer input) -->
<ui:VisualElement name="world-map" class="world-map world-map--hidden">
<ui:VisualElement name="world-map-viewport" class="world-map__viewport">
<ui:VisualElement name="world-map-content" class="world-map__content" picking-mode="Ignore">
<ui:VisualElement name="world-map-image" class="world-map__image" picking-mode="Ignore" />
<ui:VisualElement name="world-map-icons" class="world-map__icons" picking-mode="Ignore" />
</ui:VisualElement>
</ui:VisualElement>
<ui:Label name="world-map-hint" class="world-map__hint" picking-mode="Ignore"
text="Drag to pan · Wheel to zoom · Right-click to set a waypoint · M to close" />
</ui:VisualElement>
</ui:VisualElement>
</ui:UXML>
```
Everything except the world map viewport uses `picking-mode="Ignore"`, so the HUD never eats clicks meant for gameplay ([[3.HUD and Inventory Example]] explains the same rule).
## 3.3 `Wayfinding.uss`, minimap section
Parts 4-6 append their sections to the same file.
```css
.wayfinding-root {
position: absolute;
left: 0; top: 0; right: 0; bottom: 0;
}
/* ---------- Minimap ---------- */
.minimap {
position: absolute;
right: 32px;
top: 32px;
width: 240px;
height: 240px;
}
/* The mask: overflow hidden + border-radius = stencil-masked circle. Radius = half the size. */
.minimap__mask {
position: absolute;
left: 0; top: 0; right: 0; bottom: 0;
border-top-left-radius: 120px;
border-top-right-radius: 120px;
border-bottom-left-radius: 120px;
border-bottom-right-radius: 120px;
overflow: hidden;
background-color: rgb(16, 20, 26);
}
/* Rotates as one unit around its centre (transform-origin defaults to center). */
.minimap__rotator {
position: absolute;
left: 0; top: 0; right: 0; bottom: 0;
}
/* Size and translate are set from code (part 2's overscan and offset). */
.minimap__image {
position: absolute;
left: 0;
top: 0;
}
.minimap__icons {
position: absolute;
left: 0; top: 0; right: 0; bottom: 0;
}
.map-icon {
position: absolute;
left: 0;
top: 0;
}
.minimap__north {
position: absolute;
left: 110px; /* (240 - 20) / 2 */
top: 6px;
width: 20px;
height: 20px;
-unity-text-align: middle-center;
-unity-font-style: bold;
font-size: 14px;
color: rgb(255, 210, 90);
-unity-text-outline-width: 1px;
-unity-text-outline-color: rgba(0, 0, 0, 0.8);
}
.minimap__player {
position: absolute;
left: 108px; /* (240 - 24) / 2 */
top: 108px;
width: 24px;
height: 24px;
}
.minimap__player-arrow {
position: absolute;
left: 0; top: 0; right: 0; bottom: 0;
}
.minimap__ring {
position: absolute;
left: 0; top: 0; right: 0; bottom: 0;
border-width: 3px;
border-color: rgba(200, 220, 255, 0.55);
border-top-left-radius: 120px;
border-top-right-radius: 120px;
border-bottom-left-radius: 120px;
border-bottom-right-radius: 120px;
}
```
**Why `border-*-radius` in pixels and not `50%`:** the 6000.5 masking manual demonstrates rounded masks with pixel radii; I did not verify percentage radii in USS, so the sheet uses half of the 240 px size. If you change the size, change the radii.
**What the circle costs.** Per the masking manual, rectangle masks use cheap clipping, while rounded-corner and arbitrary-shape masks use **stencil masking**, and nested stencil masks break batching (`UsageHints.MaskContainer` on the outermost mask reduces that). One circular mask is fine. UI Toolkit also needs the depth and stencil buffers: if you see the "Depth and stencil buffers are disabled in Player settings" warning, enable them in Player settings or the circle will not clip on some platforms.
**Arbitrary shapes.** For a hex or shield-shaped minimap, the manual's alternative is an SVG background image on the masking element. The same page notes arbitrary-shape masking is not supported in World Space UI.
## 3.4 `PanelViewBase.cs`
Every view needs the same reload-callback plumbing, so put it in one base class.
```csharp
using UnityEngine;
using UnityEngine.UIElements;
namespace Wayfinding
{
/// <summary>
/// Base for views living on a PanelRenderer (6000.5+). Binds on first load and on every real reload
/// (version change); unbinds on disable. NOT compiled.
/// </summary>
public abstract class PanelViewBase : MonoBehaviour
{
[SerializeField] protected PanelRenderer panelRenderer;
int _version = -1;
protected VisualElement Root { get; private set; }
protected bool IsBound => Root != null;
protected virtual void OnEnable()
{
if (panelRenderer == null) panelRenderer = GetComponent<PanelRenderer>();
panelRenderer.RegisterUIReloadCallback(HandleReload); // fires now if already loaded
}
protected virtual void OnDisable()
{
if (panelRenderer != null) panelRenderer.UnregisterUIReloadCallback(HandleReload);
if (Root != null) Unbind();
Root = null;
_version = -1; // re-enable re-binds even though PanelRenderer kept the same tree
}
void HandleReload(PanelRenderer renderer, VisualElement root, int version)
{
if (version == _version && root == Root) return; // same tree: already wired
if (Root != null) Unbind(); // tree rebuilt: old references are stale
_version = version;
Root = root;
Bind(root);
}
/// <summary>Query elements, subscribe to events, create pooled children.</summary>
protected abstract void Bind(VisualElement root);
/// <summary>Unsubscribe and remove anything Bind created.</summary>
protected abstract void Unbind();
}
}
```
Why reset `_version` in `OnDisable`: `PanelRenderer` keeps its tree when disabled (see [[2.UI Toolkit Project Setup]]), so on re-enable the callback fires with the *same* version. Because we unbound on disable, we must bind again.
## 3.5 `ArrowGlyph.cs`
A small vector arrow drawn with `Painter2D`, so the player arrow and the off-screen arrows in part 6 need no sprite assets and stay sharp at any scale.
```csharp
using UnityEngine;
using UnityEngine.UIElements;
namespace Wayfinding
{
/// <summary>An upward-pointing arrowhead with a notch. Rotate it with style.rotate. NOT compiled.</summary>
[UxmlElement]
public partial class ArrowGlyph : VisualElement
{
Color _arrowColor = Color.white;
[UxmlAttribute]
public Color arrowColor
{
get => _arrowColor;
set { _arrowColor = value; MarkDirtyRepaint(); }
}
public ArrowGlyph()
{
pickingMode = PickingMode.Ignore;
generateVisualContent += Draw;
}
void Draw(MeshGenerationContext ctx)
{
Rect r = contentRect;
if (r.width <= 0f || r.height <= 0f) return;
Painter2D p = ctx.painter2D;
p.fillColor = _arrowColor;
p.BeginPath();
p.MoveTo(new Vector2(r.center.x, r.yMin)); // tip
p.LineTo(new Vector2(r.xMax, r.yMax)); // right foot
p.LineTo(new Vector2(r.center.x, r.yMax - r.height * 0.3f)); // notch
p.LineTo(new Vector2(r.xMin, r.yMax)); // left foot
p.ClosePath();
p.Fill();
p.strokeColor = new Color(0f, 0f, 0f, 0.7f); // outline for contrast
p.lineWidth = 1.5f;
p.Stroke();
}
}
}
```
`generateVisualContent` only re-runs when the element is dirtied (size change or `MarkDirtyRepaint`), **not** when you rotate or translate it, because transforms do not regenerate geometry. Rotating the arrow every frame is therefore free.
## 3.6 `MinimapView.cs`
```csharp
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.InputSystem;
using UnityEngine.UIElements;
namespace Wayfinding
{
/// <summary>
/// Shows MinimapCamera's texture in a round mask, rotates for player-up, slides the image between renders,
/// and draws MapMarker icons (clamped to the rim or hidden). Runs after MinimapCamera. NOT compiled.
/// </summary>
[DefaultExecutionOrder(50)]
public sealed class MinimapView : PanelViewBase
{
public enum Orientation { NorthUp, PlayerUp }
[Header("Sources")]
[SerializeField] MinimapCamera minimapCamera;
[SerializeField] Transform player;
[Tooltip("Whose facing turns a player-up map: the camera rig (third person) or the player (top-down). Empty = player.")]
[SerializeField] Transform headingSource;
[Header("Behaviour")]
[SerializeField] Orientation orientation = Orientation.PlayerUp;
[Tooltip("Pixels between clamped icons and the rim.")]
[SerializeField, Min(0f)] float rimInset = 12f;
[Header("Input (optional)")]
[SerializeField] InputActionReference zoomInAction;
[SerializeField] InputActionReference zoomOutAction;
[SerializeField, Range(0.5f, 0.95f)] float zoomStep = 0.8f;
VisualElement _mask, _rotator, _image, _icons, _north;
ArrowGlyph _playerArrow;
float _diameter = float.NaN;
float _lastImageSize = -1f;
bool _textureBound;
readonly Dictionary<MapMarker, VisualElement> _iconOf = new Dictionary<MapMarker, VisualElement>(64);
public Orientation CurrentOrientation
{
get => orientation;
set => orientation = value; // e.g. from a settings toggle
}
protected override void OnEnable()
{
base.OnEnable();
if (zoomInAction != null) { zoomInAction.action.performed += OnZoomIn; zoomInAction.action.Enable(); }
if (zoomOutAction != null) { zoomOutAction.action.performed += OnZoomOut; zoomOutAction.action.Enable(); }
}
protected override void OnDisable()
{
if (zoomInAction != null) zoomInAction.action.performed -= OnZoomIn;
if (zoomOutAction != null) zoomOutAction.action.performed -= OnZoomOut;
base.OnDisable();
}
void OnZoomIn(InputAction.CallbackContext _) => minimapCamera.Zoom(zoomStep);
void OnZoomOut(InputAction.CallbackContext _) => minimapCamera.Zoom(1f / zoomStep);
// ---------- binding ----------
protected override void Bind(VisualElement root)
{
_mask = root.Q<VisualElement>("minimap-mask");
_rotator = root.Q<VisualElement>("minimap-rotator");
_image = root.Q<VisualElement>("minimap-image");
_icons = root.Q<VisualElement>("minimap-icons");
_north = root.Q<VisualElement>("minimap-north");
// NOTE: no usageHints on these three. They came from UXML and are already in the panel,
// and usageHints throws once an element is part of a panel (see 3.7).
_playerArrow = new ArrowGlyph { name = "minimap-player-arrow", arrowColor = new Color(1f, 0.85f, 0.3f) };
_playerArrow.AddToClassList("minimap__player-arrow");
_playerArrow.usageHints = UsageHints.DynamicTransform;
root.Q<VisualElement>("minimap-player").Add(_playerArrow);
_mask.RegisterCallback<GeometryChangedEvent>(OnMaskGeometryChanged);
_textureBound = false;
_lastImageSize = -1f;
MarkerRegistry.Added += OnMarkerAdded;
MarkerRegistry.Removed += OnMarkerRemoved;
MarkerRegistry.Changed += OnMarkerChanged;
foreach (MapMarker m in MarkerRegistry.All) OnMarkerAdded(m); // late subscriber catch-up
}
protected override void Unbind()
{
MarkerRegistry.Added -= OnMarkerAdded;
MarkerRegistry.Removed -= OnMarkerRemoved;
MarkerRegistry.Changed -= OnMarkerChanged;
_mask?.UnregisterCallback<GeometryChangedEvent>(OnMaskGeometryChanged);
foreach (VisualElement icon in _iconOf.Values) icon.RemoveFromHierarchy();
_iconOf.Clear();
_playerArrow?.RemoveFromHierarchy();
_playerArrow = null;
}
void OnMaskGeometryChanged(GeometryChangedEvent evt)
=> _diameter = Mathf.Min(evt.newRect.width, evt.newRect.height);
void EnsureTexture()
{
if (_textureBound || minimapCamera == null || minimapCamera.Texture == null) return;
// MinimapCamera creates its texture in Awake, which may run after our first Bind.
_image.style.backgroundImage = new StyleBackground(Background.FromRenderTexture(minimapCamera.Texture));
_textureBound = true;
}
// ---------- registry events ----------
void OnMarkerAdded(MapMarker marker)
{
if (!IsBound || _iconOf.ContainsKey(marker)) return;
var icon = new VisualElement { pickingMode = PickingMode.Ignore, usageHints = UsageHints.DynamicTransform };
icon.AddToClassList("map-icon");
_icons.Add(icon);
_iconOf.Add(marker, icon);
ApplyKind(marker, icon);
}
void OnMarkerRemoved(MapMarker marker)
{
if (_iconOf.TryGetValue(marker, out VisualElement icon))
{
icon.RemoveFromHierarchy();
_iconOf.Remove(marker);
}
}
void OnMarkerChanged(MapMarker marker)
{
if (_iconOf.TryGetValue(marker, out VisualElement icon)) ApplyKind(marker, icon);
}
void ApplyKind(MapMarker marker, VisualElement icon)
{
bool show = marker.ShowsOn(MarkerChannels.Minimap) && marker.transform != player;
icon.style.display = show ? DisplayStyle.Flex : DisplayStyle.None;
if (!show) return;
MarkerKind k = marker.Kind;
icon.style.backgroundImage = k.icon != null ? new StyleBackground(k.icon) : new StyleBackground(StyleKeyword.None);
icon.style.unityBackgroundImageTintColor = k.tint;
icon.style.width = k.iconSize.x;
icon.style.height = k.iconSize.y;
icon.userData = k;
SortIconsByPriority();
}
void SortIconsByPriority()
{
// Children later in the hierarchy draw on top. Only runs on add/kind change, not per frame.
_icons.Sort((a, b) =>
{
int pa = a.userData is MarkerKind ka ? ka.priority : 0;
int pb = b.userData is MarkerKind kb ? kb.priority : 0;
return pa.CompareTo(pb);
});
}
// ---------- per frame ----------
void LateUpdate()
{
if (!IsBound || minimapCamera == null || player == null) return;
EnsureTexture();
if (float.IsNaN(_diameter) || _diameter <= 0f) return; // first layout not done yet
float radiusPx = _diameter * 0.5f;
float ppm = radiusPx / minimapCamera.RadiusMeters; // pixels per meter
Vector3 playerPos = player.position;
float viewHeading = MapMath.Heading((headingSource != null ? headingSource : player).forward);
float mapRotation = orientation == Orientation.PlayerUp ? -viewHeading : 0f;
// 1) Rotate the whole map (image + icons + N) around the mask centre.
_rotator.style.rotate = new Rotate(mapRotation);
// 2) Image: sized from the extent actually in the texture; slid by how far the player moved since it was rendered.
float imageSize = 2f * minimapCamera.RenderedHalfExtent * ppm;
if (!Mathf.Approximately(imageSize, _lastImageSize))
{
_image.style.width = imageSize; // layout change: only on zoom (dirty flag)
_image.style.height = imageSize;
_lastImageSize = imageSize;
}
Vector2 slide = MapMath.MapToPanel(MapMath.ToMap(minimapCamera.RenderedCenter - playerPos), ppm);
float topLeft = radiusPx - imageSize * 0.5f;
_image.style.translate = new Translate(topLeft + slide.x, topLeft + slide.y);
// 3) "N" stays upright while the rotator turns.
_north.style.rotate = new Rotate(-mapRotation);
// 4) Player arrow: body yaw relative to the displayed map.
float bodyHeading = MapMath.Heading(player.forward);
_playerArrow.style.rotate = new Rotate(bodyHeading + mapRotation);
// 5) Icons in north-up space; the rotator applies mapRotation for us.
float limit = radiusPx - rimInset;
foreach (KeyValuePair<MapMarker, VisualElement> pair in _iconOf)
{
MapMarker marker = pair.Key;
VisualElement icon = pair.Value;
if (icon.style.display.value == DisplayStyle.None) continue; // inline value we set in ApplyKind
Vector2 px = MapMath.MapToPanel(MapMath.ToMap(marker.GroundPosition - playerPos), ppm);
float dist = px.magnitude;
if (dist > limit)
{
if (!marker.Kind.clampToMinimapEdge) { icon.visible = false; continue; }
px *= limit / dist; // pin to the rim, in the right direction
}
icon.visible = true;
Vector2 size = marker.Kind.iconSize;
icon.style.translate = new Translate(radiusPx + px.x - size.x * 0.5f, radiusPx + px.y - size.y * 0.5f);
// Local rotation inside the rotator: entity facing, or cancel the map rotation to stay upright.
icon.style.rotate = new Rotate(marker.Kind.rotateWithEntity ? marker.Yaw : -mapRotation);
}
}
}
}
```
## 3.7 How the pieces line up
```text
mask (240 px circle, overflow hidden)
└─ rotator (fills mask, rotate = mapRotation, origin = center)
├─ image (size = 2 × RenderedHalfExtent × ppm ≈ 340 px, translate = centre − size/2 + slide)
├─ icons (each translate = centre + (east, −north) × ppm, rotate = yaw or −mapRotation)
└─ "N" (rotate = −mapRotation so the letter stays upright)
player slot (not rotated) └─ ArrowGlyph (rotate = bodyHeading + mapRotation)
ring (border only, drawn on top)
```
- **Player-up rotation sign.** Facing east (heading 90) in player-up mode, east must point up, so the map turns 90° counter-clockwise: `rotate = -90`. The USS manual states positive rotation is clockwise, hence `mapRotation = -heading`.
- **Slide compensation.** Between renders (part 2 renders at 15 Hz) the texture is stale, but `RenderedCenter` tells us exactly which world point is in its centre. Offsetting the image by `(RenderedCenter - player) × ppm` keeps the ground under the player correct to the sub-pixel, so a 15 Hz minimap looks like a 60 Hz one. You only see the low rate on things that move *in the texture* (doors, vehicles), which is another reason moving things are icons, not geometry.
- **Icons are live.** They use the player's current position every frame, so they never lag behind the texture.
- **`visible` vs `display`.** `display: none` removes the element from layout (used for "this kind never shows on the minimap"). `visible = false` just skips drawing (used per frame for out-of-range markers) and does not trigger layout.
- **`usageHints` must be set before the element joins a panel.** The 6000.5 Scripting API says the property "can only be set when the VisualElement is not yet part of a Panel" and throws afterwards. That is why the icons and the arrow get `UsageHints.DynamicTransform` in their initializer *before* `Add`, while the UXML-authored rotator, image and "N" get none. If the Profiler shows those three costing you, create them in code in `Bind` (set the hint, then `Add`) instead of authoring them in UXML.
- **Transform-only per frame.** Each frame we only touch `rotate` and `translate`, which the USS transform manual describes as not recalculating the layout of other elements. `width`/`height` are layout properties, so they only change on zoom.
## 3.8 Input actions for zoom (optional)
In your input actions asset ([[Input System]]), add two **Button** actions to your gameplay map, `MinimapZoomIn` (`<Keyboard>/equals`, `<Gamepad>/dpad/up`) and `MinimapZoomOut` (`<Keyboard>/minus`, `<Gamepad>/dpad/down`), and assign them via `InputActionReference`. The view enables them itself; if your project enables whole action maps centrally, remove the `Enable()` calls.
## 3.9 Test
1. Add `MinimapView` to `WayfindingHUD`, assign Panel Renderer (or leave it empty: it finds the one on the same GameObject), Minimap Camera, Player, and Heading Source (your Cinemachine camera or main camera for third person; see [[Cinemachine 3]]).
2. Play. You should see the round map with the player arrow. Walk: the ground slides smoothly even with Renders Per Second at 5 (try it, it is a good test of the slide compensation).
3. Switch Orientation to North Up at runtime: the "N" goes to the top and the arrow turns instead.
4. Walk far from the objective: its icon sticks to the rim and slides around it as you turn. The enemy icon disappears instead (`clampToMinimapEdge` off).
## Sources
- `PanelRenderer` (6000.5, `RegisterUIReloadCallback`, versioned callback): https://docs.unity3d.com/6000.5/Documentation/ScriptReference/UIElements.PanelRenderer.html
- Panel Renderer component manual: https://docs.unity3d.com/6000.5/Documentation/Manual/ui-systems/panel-renderer-component.html
- `Background.FromRenderTexture(RenderTexture)`: https://docs.unity3d.com/6000.5/Documentation/ScriptReference/UIElements.Background.FromRenderTexture.html
- `StyleBackground` constructors (`Background`, `Sprite`, `Texture2D`, `VectorImage`, `StyleKeyword`): https://docs.unity3d.com/6000.5/Documentation/ScriptReference/UIElements.StyleBackground-ctor.html
- Masking in UI Toolkit (overflow hidden, rounded = stencil, `UsageHints.MaskContainer`, depth/stencil warning, SVG masks): https://docs.unity3d.com/6000.5/Documentation/Manual/UIE-masking.html
- USS transform (translate/rotate/scale, positive rotate = clockwise, origin center, no layout recalculation): https://docs.unity3d.com/6000.5/Documentation/Manual/UIE-Transform.html
- `UsageHints` (`DynamicTransform`, `MaskContainer`): https://docs.unity3d.com/6000.5/Documentation/ScriptReference/UIElements.UsageHints.html
- `VisualElement.usageHints` (settable only before the element is part of a panel): https://docs.unity3d.com/6000.5/Documentation/ScriptReference/UIElements.VisualElement-usageHints.html
- `VisualElement.Sort(Comparison<VisualElement>)`: https://docs.unity3d.com/6000.5/Documentation/ScriptReference/UIElements.VisualElement.Sort.html
- `VisualElement.generateVisualContent`: https://docs.unity3d.com/6000.5/Documentation/ScriptReference/UIElements.VisualElement-generateVisualContent.html
- `Painter2D` (`BeginPath`, `MoveTo`, `LineTo`, `ClosePath`, `Fill`, `Stroke`, `fillColor`, `strokeColor`, `lineWidth`): https://docs.unity3d.com/6000.5/Documentation/ScriptReference/UIElements.Painter2D.html
- `MeshGenerationContext.painter2D`: https://docs.unity3d.com/6000.5/Documentation/ScriptReference/UIElements.MeshGenerationContext-painter2D.html
- `GeometryChangedEvent`: https://docs.unity3d.com/6000.5/Documentation/ScriptReference/UIElements.GeometryChangedEvent.html
- `IStyle.unityBackgroundImageTintColor`: https://docs.unity3d.com/6000.5/Documentation/ScriptReference/UIElements.IStyle-unityBackgroundImageTintColor.html
- Runtime UI performance considerations: https://docs.unity3d.com/6000.5/Documentation/Manual/UIE-performance-consideration-runtime.html
- Input System 1.20.1 on 6000.5: https://docs.unity3d.com/6000.5/Documentation/Manual/com.unity.inputsystem.html