csharp
public sealed class QuantizeAttributeDeclares what a float is a float of, so it can be sent in fewer bits.
No guide page documents this yet — the page shows what the code says about itself.
As a annotation
- Valid on
- Property, Field, Parameter
Remarks
Read by Vixen.Net.Generators, which turns it into a QuantizeRange in the emitted replicator. Putting it on the field rather than in the sending code is the point: the precision a packet costs is then declared where the field is declared, and reviewed when the field is.
Fields and properties (3)
public float MinThe smallest value that will be sent exactly.
public float MaxThe largest.
public int BitsHow many bits to spend.
Methods (1)
public QuantizeAttribute(float min, float max, int bits)Declares what a float is a float of, so it can be sent in fewer bits.
Used by (5)
- AvatarControllerMultiplayer
- GeneratedPoseVixen.Net.Generators.Tests
- GeneratedTransformVixen.Net.Generators.Tests
- GeneratedTurretVixen.Net.Generators.Tests
- ReplicatedPositionVixen.Net.Tests