Field assetPath
The asset this entry points at, as a project path, so the entry can be marked in the editor by dragging the asset in rather than by hand-writing a JSON or a GUID.
A path is not a reference on purpose. A direct Object field would make the asset reachable from
the root by reference — and then Unity pulls it in on registration, always resident, which is exactly
what Unity.Loading.Loadable<T> exists to avoid. The path is authoring data; the Loadable below is the
built edge, derived from it.
public string assetPath
Returns
- string
- The asset this entry points at, as a project path, so the entry can be marked in the editor by dragging the asset in rather than by hand-writing a JSON or a GUID. A path is not a reference on purpose. A direct Object field would make the asset reachable from the root by reference — and then Unity pulls it in on registration, always resident, which is exactly what exists to avoid. The path is authoring data; the Loadable below is the built edge, derived from it.