---
title: rootObject
framework: phase
role: symbol
role_heading: Instance Property
path: phase/phaseengine/rootobject
---

# rootObject

The main object to which the app adds child objects.

## Declaration

```swift
var rootObject: PHASEObject { get }
```

## Mentioned in

Playing sound from a location in a 3D scene

## Discussion

Discussion The framework creates and sets the root object at engine instantiation. Avoid executing the following actions in your app; these actions cause the engine to generate a runtime error: Adding this object as a child. Altering the transform of this object. Copying this object.
