Rive rendering reproduction

This small Unity project displays Rive's public health-bar sample in one panel
on the left side. It loads the file's default artboard and state machine.
A cyan Unity UI square moves along the bottom as a separate rendering control.

Requirements

- Unity 6000.5.1f1 with macOS IL2CPP build support.
- Rive Unity 0.5.2-exp.8, pinned to commit
  0654a22528bc53cd68936ee4e81d349f540331f9 in Packages/manifest.json.
- Universal Render Pipeline 17.5.0 and Unity UI 2.5.0.
- Internet access for Unity Package Manager to resolve the pinned dependencies.

Open and run

1. Unzip the project and open its folder through Unity Hub.
2. Allow Unity to finish importing and compiling.
3. Open Assets/Repro.unity.
4. Select Rendering Reproduction in the Hierarchy. Its component exposes
   threadingMode for the BackgroundThread and MainThread controls.
5. Enter Play to inspect the scene. Use a standalone macOS player to repeat
   the native tests described below.

Build

Choose Reproduction > Build macOS player. This writes
Build/RenderingRepro.app as a Development IL2CPP ARM64 player using Metal.

The same build can be made from the command line. Replace the Unity executable
and project paths for your machine.

Unity -batchmode -nographics -quit -projectPath PROJECT_PATH \
  -buildTarget StandaloneOSX -executeMethod RenderingReproEditor.Build \
  -logFile build.log OUTPUT_PATH/RenderingRepro.app

Player controls

- Default launch uses BackgroundThread and one panel.
- --inline selects MainThread.
- --capture PATH writes a PNG after every widget is loaded and 120 further
  frames have elapsed. Capture uses WaitForEndOfFrame and
  ScreenCapture.CaptureScreenshotAsTexture. The player then exits.

For example, from the project folder in a macOS terminal:

mkdir -p TemporaryScreenshots
"Build/RenderingRepro.app/Contents/MacOS/RenderingRepro" \
  -screen-width 1920 -screen-height 1080 -screen-fullscreen 0 \
  -logFile background.log \
  --capture "$PWD/TemporaryScreenshots/background.png"

Repeat with --inline for the MainThread control. Keep the resolution and
graphics settings the same.

Public sample and license

Assets/StreamingAssets/sample.riv is an unmodified copy of
quick_start_health_bar.riv from the official rive-app/rive-unity repository.
SAMPLE-SOURCE.txt records its public URL, exact commit and SHA-256.
RIVE-LICENSE.txt preserves the repository's MIT notice.

Validation

See VALIDATION.txt for the observed native-player results.
