Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions samples/desktop-avatar/Assets/TigerSpeechBubble.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ public class TigerSpeechBubble : MonoBehaviour
// fresh install / partner starts here, not at the avatar 0.25 / 1000x1500).
// Per-user changes still persist on top via PlayerPrefs.
private const float kDefaultBubbleBandFraction = 0.33f;
// Cosmetic edge feather radius (client-window px) for the 3D zone's edge —
// the zone-vs-band transition (unity#238; opt-in since runtime spec v3).
private const float kZoneEdgeFeatherPx = 16f;
// ProjectSettings born-windowed default (840x1448) — fallback when Screen.* is
// not yet populated at SubsystemRegistration time.
private const int kDefaultPanelW = 840;
Expand Down Expand Up @@ -132,10 +135,20 @@ private static void SeedLaunchZone()
// zone-sized.
DisplayXR.DisplayXRProvider.SetZoneRect(0, splitY, z0w, panelH - splitY);

// Soft zone-vs-band edge (unity#238): zone edges are HARD by default
// since runtime display-zones spec v3 (runtime#800) — the avatar wants
// its tiger zone feathered into the bubble band, so it opts in with an
// explicit radius (the pre-v3 implicit look was 16 px). Cosmetic only:
// the hardware wish stays binary; pre-v3 runtimes ignore the request.
try { DisplayXR.DisplayXRProvider.SetZoneFeather(0, kZoneEdgeFeatherPx); }
catch (System.EntryPointNotFoundException) { } // older plugin DLL

if (s_MultiZone)
{
DisplayXR.DisplayXRProvider.SetZoneCount(2);
DisplayXR.DisplayXRProvider.SetZone(1, 2, panelW / 2, splitY, panelW - panelW / 2, panelH - splitY);
try { DisplayXR.DisplayXRProvider.SetZoneFeather(1, kZoneEdgeFeatherPx); }
catch (System.EntryPointNotFoundException) { }
Debug.Log($"[TigerSpeechBubble] MULTI-ZONE: zone0=bottom-left(0,{splitY},{panelW / 2},{panelH - splitY}) " +
$"zone1=bottom-right({panelW / 2},{splitY},{panelW - panelW / 2},{panelH - splitY})");
}
Expand Down
2 changes: 1 addition & 1 deletion samples/desktop-avatar/Packages/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dependencies": {
"com.displayxr.unity": "https://github.com/DisplayXR/displayxr-unity.git#upm/v2.9.1",
"com.displayxr.unity": "https://github.com/DisplayXR/displayxr-unity.git#upm/v2.10.0",
"com.unity.multiplayer.center": "1.0.1",
"com.unity.render-pipelines.universal": "17.0.4",
"com.unity.ugui": "2.0.0",
Expand Down
4 changes: 2 additions & 2 deletions samples/desktop-avatar/Packages/packages-lock.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"dependencies": {
"com.displayxr.unity": {
"version": "https://github.com/DisplayXR/displayxr-unity.git#upm/v2.9.1",
"version": "https://github.com/DisplayXR/displayxr-unity.git#upm/v2.10.0",
"depth": 0,
"source": "git",
"dependencies": {
"com.unity.xr.management": "4.4.0"
},
"hash": "416bf4e8018e71afb626d6c8b423cd258b16bd56"
"hash": "3c4ca06f3eeb87bf3236d13c50597986d8cc7353"
},
"com.unity.burst": {
"version": "1.8.28",
Expand Down