path
A path that identifies the object in an asset’s object hierarchy using object names.
Declaration
var path: String { get }Discussion
Model I/O forms a path for each object in an asset’s object hierarchy by concatenating the name properties of objects in the hierarchy, separated by slashes and preceded by an initial slash.
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 instance providing a transform inherited by several meshes, and “chair1” is the name of a MDLMesh object.