<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ModelIO",
  "identifier" : "/documentation/ModelIO/MDLObject/path",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Model I/O"
    ],
    "preciseIdentifier" : "c:objc(cs)MDLObject(py)path"
  },
  "title" : "path"
}
-->

# path

A path that identifies the object in an asset’s object hierarchy using object names.

```
var path: String { get }
```

## Discussion

Model I/O forms a path for each object in an asset’s object hierarchy by concatenating the [`name`](/documentation/ModelIO/MDLNamed/name) properties of objects in the hierarchy, separated by slashes and preceded by an initial slash.

> Note:
> When using an object’s name in a path, Model I/O converts all characters not in the set `[A-Z][a-z][0-9][:-_.]` to underscores.

For example, a mesh in an asset modeling a dining room scene might have the path `/meshes/table_anchor/chair1`, where “meshes” is one of the top-level children of the asset, “table anchor” is a [`MDLObject`](/documentation/ModelIO/MDLObject) instance providing a transform inherited by several meshes, and “chair1” is the name of a [`MDLMesh`](/documentation/ModelIO/MDLMesh) object.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)