# SerializableMotionSettings<TValue, TOptions>

Tween settings for the Unity Inspector. Converts built-in schedulers to and from Unity's serialized representation.

Namespace: MeatMotion

Assembly: MeatMotion

```csharp
public sealed record SerializableMotionSettings<TValue, TOptions> : MotionSettings<TValue, TOptions>, ISerializationCallbackReceiver
    where TValue : unmanaged
    where TOptions : unmanaged, IMotionOptions
```

[Runtime/MotionSettings.cs · L110](../../../source/Runtime/MotionSettings.cs.html#L110)

## OnBeforeSerialize

If the current scheduler is in the built-in table, save its index for Unity serialization.

```csharp
public void OnBeforeSerialize()
```

[Runtime/MotionSettings.cs · L120](../../../source/Runtime/MotionSettings.cs.html#L120)

## OnAfterDeserialize

Restore the built-in scheduler referenced by the serialized index.

```csharp
public void OnAfterDeserialize()
```

[Runtime/MotionSettings.cs · L126](../../../source/Runtime/MotionSettings.cs.html#L126)

## Related types

- [MotionSettings<TValue, TOptions>](../../../en/api/motionsettings-2/index.md)
