You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Editor and test tools: tolerant image compare, backend scope, profile scene sync #1292
Three DoxReloaded editor and test helpers name no game type. DoxReloaded PR #1302's sweep for general-purpose code found them.
Tolerant image comparison (GoldenImage). CountMismatches(Color32[] expected, Color32[] actual, int tolerance) counts pixels where any channel differs by more than the tolerance. CountEdgeTolerantMismatches also forgives an edge's peak pixel by a fraction of the edge's contrast, because rasterizers disagree there. Every golden-image test needs this.
Scripting backend scope (ScriptingBackendScope). new ScriptingBackendScope(NamedBuildTarget, ScriptingImplementation) sets the backend and puts the old one back on Dispose, so an editor build script cannot leak an IL2CPP switch.
Build profile scene sync (AutoSyncBuildProfileScenes, [InitializeOnLoad]). Keeps each build profile's scene list in step with the global list in Unity 6's Build Profiles.
Ask
Each as its own editor helper, or under one Editor/Build and Tests area. 1 fits beside RestorableGlobal's family of test conveniences; 2 is that pattern for PlayerSettings.
Evidence
Search of 3.7.2 Runtime/ and Editor/ for image mismatch helpers, ScriptingImplementation scopes and build-profile scene handling: none.
Activity