Skip to content

Prevent Face Tracking from sending when disconnected from server.#703

Merged
dooly123 merged 3 commits intoBasisVR:developerfrom
Toys0125:Fix-Facetracking-Disconnect
Mar 31, 2026
Merged

Prevent Face Tracking from sending when disconnected from server.#703
dooly123 merged 3 commits intoBasisVR:developerfrom
Toys0125:Fix-Facetracking-Disconnect

Conversation

@Toys0125
Copy link
Copy Markdown
Contributor

At the moment the script will continue to send to the network channel after disconnect from server, which will be null.

Additions

  • Adds a event action called OnLocalPlayerConnectionStateChanged
  • LocalPlayerIsConnected invokes events

Improvement

  • Adds check if can send in face tracking.
  • Adds event delegate function for state change.

Fixes issue that the log gets flooded when face tracking tries sending data.
}

_localPlayerIsConnected = value;
OnLocalPlayerConnectionStateChanged?.Invoke(value);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

im not a big fan of bool changes callback fires from that,

its ever so slower then just calling = true & invoke(); seperately

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

im also pretty sure we have a callback already

@dooly123 dooly123 merged commit 103675f into BasisVR:developer Mar 31, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants