Skip to content

Commit

Permalink
Fix ownership issue for theme color CC toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
pema99 committed Sep 8, 2024
1 parent 420be4c commit 7452d3a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ public void SetCustomThemeColors(params Color[] colors)

public void ToggleThemeColorMode()
{
#if UDONSHARP
if (!Networking.IsOwner(gameObject))
Networking.SetOwner(localPlayer, gameObject);
#endif
_themeColorMode = themeColorToggle.isOn ? 0 : 1;
UpdateGUI();
UpdateAudioLinkThemeColors();
Expand Down

0 comments on commit 7452d3a

Please sign in to comment.