---
title: CalculateLocalToWorld()
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/entities/transformref/calculatelocaltoworld
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/entities/transformref/calculatelocaltoworld.md
last_updated: 2026-10-31
generated_at: 2026-11-04T11:41:57.271Z
locale: en-us
---

# CalculateLocalToWorld()

> Computes the matrix that transforms from this transform's local space to world space.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

```csharp
public float4x4 CalculateLocalToWorld()
```

### Returns

| Type                                                                      | Description                |
| ------------------------------------------------------------------------- | -------------------------- |
| [float4x4](/engine/7000.0/script-reference/unity/mathematics/float4x4.md) | The local-to-world matrix. |
