---
title: ToString
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/quaternion4/tostring
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/quaternion4/tostring.md
last_updated: 2026-11-30
generated_at: 2026-11-30T21:49:17.082Z
locale: en-us
---

# ToString

> Converts the quaternion4 to a string.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Animations](/engine/7000.0/script-reference/unity/animations.md)
* **Assembly:** [UnityEngine.AnimationCoreModule](/engine/7000.0/script-reference/modules/unityengine-animationcoremodule.md)

## ToString()

Converts the quaternion4 to a string.

```csharp
[ExcludeFromBurstCompatTesting("Returns managed string")]
public override string ToString()
```

### Returns

| Type                                                           | Description                                                                                            |
| -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | A string that lists the x, y, z, and w components of lane 0, then those of lane 1, lane 2, and lane 3. |

## ToString(string, IFormatProvider)

Converts the quaternion4 to a string, using a format for each component.

```csharp
[ExcludeFromBurstCompatTesting("Returns managed string")]
public string ToString(string format, IFormatProvider formatProvider)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The numeric format string to apply to each component.**** (\[IFormatProvider]\(https\://learn.microsoft.com/dotnet/api/system.iformatprovider)): The object that provides culture-specific formatting information.

### Returns

| Type                                                           | Description                                                                                            |
| -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | A string that lists the x, y, z, and w components of lane 0, then those of lane 1, lane 2, and lane 3. |
