allencook200
Member
- Joined
- Apr 27, 2021
- Messages
- 9
- Programming Experience
- 1-3
So my server needs a way to send floats to the client. Doing this with binarywriter creates allocations when writing floats, but not integers.
So how I thought about solving this problem is just sending two integers. One for before the decimal, and one after, but then I have really no way of turning that back into a float without allocating memory again.
Any help is welcome.
Edit: It appears that this problem is related to unity only.
So how I thought about solving this problem is just sending two integers. One for before the decimal, and one after, but then I have really no way of turning that back into a float without allocating memory again.
Any help is welcome.
Edit: It appears that this problem is related to unity only.
Last edited: