> For the complete documentation index, see [llms.txt](https://kinematicsoup.gitbook.io/reactor/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kinematicsoup.gitbook.io/reactor/api-reference/ks.reactor.client.unity/ks.reactor.client.unity.kstransformprecisions.md).

# Class ksTransformPrecisions

Namespace: [KS.Reactor.Client.Unity](/reactor/api-reference/ks.reactor.client.unity.md)\
Assembly: KSUnity-Source.dll

Precision used by the server to determine if an update needs to be sent to connected clients. These values may be set on a scene or entity. A value of -1f means that the value should be inherited. If set on a [ksEntityComponent](/reactor/api-reference/ks.reactor.client.unity/ks.reactor.client.unity.ksentitycomponent.md) component then the value will be inherited from the room [ksRoomType](/reactor/api-reference/ks.reactor.client.unity/ks.reactor.client.unity.ksroomtype.md) component. If set on a [ksRoomType](/reactor/api-reference/ks.reactor.client.unity/ks.reactor.client.unity.ksroomtype.md) component, then the default values will be used.

```csharp
[Serializable]
public class ksTransformPrecisions
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) â† [ksTransformPrecisions](/reactor/api-reference/ks.reactor.client.unity/ks.reactor.client.unity.kstransformprecisions.md)

#### Inherited Members

[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)), [object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)), [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode), [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype), [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone), [object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals), [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Constructors

### ksTransformPrecisions() <a href="#ks_reactor_client_unity_kstransformprecisions__ctor" id="ks_reactor_client_unity_kstransformprecisions__ctor"></a>

Constructor

```csharp
public ksTransformPrecisions()
```

### ksTransformPrecisions(float, float, float) <a href="#ks_reactor_client_unity_kstransformprecisions__ctor_system_single_system_single_system_single" id="ks_reactor_client_unity_kstransformprecisions__ctor_system_single_system_single_system_single"></a>

Constructor

```csharp
public ksTransformPrecisions(float position = 0.001, float rotation = 0.001, float scale = 0.001)
```

#### Parameters

`position` [float](https://learn.microsoft.com/dotnet/api/system.single)

Position network precision.

`rotation` [float](https://learn.microsoft.com/dotnet/api/system.single)

Rotation network precision.

`scale` [float](https://learn.microsoft.com/dotnet/api/system.single)

Scale network precision.

## Fields

### Position <a href="#ks_reactor_client_unity_kstransformprecisions_position" id="ks_reactor_client_unity_kstransformprecisions_position"></a>

Position network precision.

```csharp
[Tooltip("The accuracy of quantized position values synced over the network. 0 = full float precision value")]
[Min(-1)]
public float Position
```

#### Field Value

[float](https://learn.microsoft.com/dotnet/api/system.single)

### Rotation <a href="#ks_reactor_client_unity_kstransformprecisions_rotation" id="ks_reactor_client_unity_kstransformprecisions_rotation"></a>

Rotation network precision.

```csharp
[Tooltip("The accuracy of quantized rotation values synced over the network. 0 = full float precision value")]
[Min(-1)]
public float Rotation
```

#### Field Value

[float](https://learn.microsoft.com/dotnet/api/system.single)

### Scale <a href="#ks_reactor_client_unity_kstransformprecisions_scale" id="ks_reactor_client_unity_kstransformprecisions_scale"></a>

Scale network precision.

```csharp
[Tooltip("The accuracy of quantized scale values synced over the network. 0 = full float precision value")]
[Min(-1)]
public float Scale
```

#### Field Value

[float](https://learn.microsoft.com/dotnet/api/system.single)

## Methods

### Validate() <a href="#ks_reactor_client_unity_kstransformprecisions_validate" id="ks_reactor_client_unity_kstransformprecisions_validate"></a>

Check if the values are valid. If a value is a negative float, then snap it to -1f. During publishing a values of -1f is used to indicate that a parent or default value should be used.

```csharp
public void Validate()
```
