---
title: "init(transform:extent:)"
framework: arkit
role: symbol
role_heading: Initializer
path: "arkit/arenvironmentprobeanchor/init(transform:extent:)"
---

# init(transform:extent:)

Creates a new environment probe anchor.

## Declaration

```swift
init(transform: simd_float4x4, extent: simd_float3)
```

## Parameters

- `transform`: A matrix that encodes the position, orientation, and scale of the anchor, relative to the world coordinate space of the AR session in which you place the anchor.
- `extent`: The extent (of bounds) of the probe anchor. World coordinate space in ARKit always follows a right-handed convention, but is oriented based on the session configuration. For details, see doc://com.apple.arkit/documentation/ARKit/understanding-world-tracking.

## Discussion

Discussion Use the add(anchor:) method to begin tracking your custom anchor in an AR session. After you add an environment probe anchor to the scene, ARKit begins generating environment textures for it. To be notified when the anchor has a new environmentTexture, implement the session(_:didUpdate:), renderer(_:didUpdate:for:), or view(_:didUpdate:for:) delegate method.

## See Also

### Creating Probe Anchors

- [init(name:transform:extent:)](arkit/arenvironmentprobeanchor/init(name:transform:extent:).md)
