---
title: "scale(relativeTo:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/hastransform/scale(relativeto:)"
---

# scale(relativeTo:)

Gets the scale of an entity relative to the given entity.

## Declaration

```swift
@MainActor @preconcurrency func scale(relativeTo referenceEntity: Entity?) -> SIMD3<Float>
```

## Parameters

- `referenceEntity`: The entity that defines a frame of reference. Set this to nil to indicate world space.

## See Also

### Scaling an entity

- [scale](realitykit/hastransform/scale.md)
- [setScale(_:relativeTo:)](realitykit/hastransform/setscale(_:relativeto:).md)
