Skip to content

Commit

Permalink
solve artnet packet send error
Browse files Browse the repository at this point in the history
  • Loading branch information
kodai100 committed Dec 22, 2022
1 parent 2d69a1b commit 85d473f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Assets/Scripts/Core/Player/ArtNetPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ public float[] ReadAndSend(double header)
Universe = (short) universeData.universe, DmxData = dmx[universeData.universe]
};

udpClient.Send(artNetPacket.ToArray(), artNetPacket.Length, artNetResendUI.IPAddress.ToString(), artNetResendUI.Port);
var artNetPacketBytes = artNetPacket.ToArray();

udpClient.Send(artNetPacketBytes, artNetPacketBytes.Length, artNetResendUI.IPAddress.ToString(), artNetResendUI.Port);
}

// universe
Expand Down

0 comments on commit 85d473f

Please sign in to comment.