The field type for type-safe compareFn.
Optionaloptions: NetReplicateOptions<T>
Optional threshold and comparison configuration.
@netReplicate({ threshold: 0.5 })
public velocity: number = 0;
@netReplicate({ positionThreshold: 0.1 })
public targetPosition: Vector3 = Vector3.zero;
Marks a field for network replication with optional threshold and comparison configuration. When the engine performs replication-only serialization or diff generation, only fields decorated with
@netReplicate()are included.