Skip to content

Commit b78d9f0

Browse files
committed
only need to log this once
1 parent ba6f183 commit b78d9f0

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Basis/Packages/com.basis.eventdriver/BasisEventDriver.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ public partial class BasisEventDriver : MonoBehaviour
6060
const int PROF_NET_COMPLETE_REMOTE_LERP = 3;
6161
const int PROF_NET_MICROPHONE = 4;
6262

63+
private static bool _hvrSimulateErrorLogged;
64+
6365
// ── Partial method declarations (calls are stripped in non-editor builds) ──
6466
partial void ProfileLateUpdateInit();
6567
partial void ProfileBegin(int section);
@@ -332,7 +334,11 @@ public void LateUpdate()
332334
}
333335
catch (Exception ex)
334336
{
335-
Debug.LogError($"HVRBasisBuiltInAddresses.Simulate failed: {ex}");
337+
if (!_hvrSimulateErrorLogged)
338+
{
339+
_hvrSimulateErrorLogged = true;
340+
BasisDebug.LogError($"HVRBasisBuiltInAddresses.Simulate failed: {ex}");
341+
}
336342
}
337343

338344
// ── BlendShape simulate ──

0 commit comments

Comments
 (0)