# Sandbox.SceneAnchor

A serializable transform that is either absolute in world space, or local to a GameObject so it
follows that object. It carries position and rotation - so it can describe a direction or a frame
as well as a location. Resolve it with [Sandbox.SceneAnchor.ToWorld](/api/Sandbox.SceneAnchor/ToWorld). Implicitly constructible from a
[Vector3](/api/Vector3) (a world position) or a [Transform](/api/Transform) (a world transform).

- Kind: struct
- Namespace: `Sandbox`
- Assembly: `Sandbox.Engine`
- Modifiers: sealed

## Properties

- [`IsAnchored`](/api/Sandbox.SceneAnchor/IsAnchored): True when this anchor is attached to a valid object.
- [`LocalPosition`](/api/Sandbox.SceneAnchor/LocalPosition): Position - in world space when [Sandbox.SceneAnchor.Parent](/api/Sandbox.SceneAnchor/Parent) is null, otherwise local to it.
- [`LocalRotation`](/api/Sandbox.SceneAnchor/LocalRotation): Rotation - in world space when [Sandbox.SceneAnchor.Parent](/api/Sandbox.SceneAnchor/Parent) is null, otherwise local to it.
- [`Parent`](/api/Sandbox.SceneAnchor/Parent): The object this anchor is attached to, or null for a fixed world-space anchor. When set, [Sandbox.SceneAnchor.LocalPosition](/api/Sandbox.SceneAnchor/LocalPosition) and [Sandbox.SceneAnchor.LocalRotation](/api/Sandbox.SceneAnchor/LocalRotation) are interpreted relative to it.
- [`Position`](/api/Sandbox.SceneAnchor/Position): The resolved world-space position.

## Methods

- [`ToWorld`](/api/Sandbox.SceneAnchor/ToWorld): Resolves this anchor to a world-space transform.
