Skip to content
This repository was archived by the owner on Nov 16, 2024. It is now read-only.

Commit c933587

Browse files
Notes on path length when installing from MR Feature Tool. (#181)
1 parent 17a811c commit c933587

1 file changed

Lines changed: 21 additions & 2 deletions

File tree

DocGen/Documentation/HowTos/WLTviaMRFeatureTool.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,16 @@ The Mixed Reality Feature Tool can be an extremely useful way to get the World L
77

88
More information on the MR Feature Tool can be found in its [online documentation](https://docs.microsoft.com/windows/mixed-reality/develop/unity/welcome-to-mr-feature-tool), but it is extremely easy to use.
99

10-
![](~/DocGen/Images/Screens/UPMSamples/MRFeatureTool.JPG)
10+
![Mixed Reality Feature Tool screenshot](~/DocGen/Images/Screens/UPMSamples/MRFeatureTool.JPG)
1111

1212
## Installing WLT via MR Feature Tool
1313

1414
To get the full WLT functionality, simply select the latest version of "World Locking Tools" from the MR Feature Tool. Then proceed to [adding WLT to a scene](InitialSetup.md#adding-world-locking-tools-to-a-unity-scene), or the [quick start guide](QuickStart.md).
1515

16-
If getting the samples (which also requires MRTK), it is not necessary to first install the dependencies. Simply select the Samples package and the minimal set of required dependencies will also be installed. But see below.
16+
If getting the samples (which also requires MRTK), it is not necessary to first install the dependencies. Simply select the Samples package and the minimal set of required dependencies will also be installed. But see [below](#samples-in-the-mr-feature-tool-writable-packages).
17+
18+
> [!NOTE]
19+
> TL;DR version - If installing from the MR Feature Tool, you must install into a folder whose path length is 11 characters long or less, including the drive. This is explained in greater detail at the [end of this article](#about-the-installation-path-length-limit). So `e:\stuff\T1` will work, but `e:\stuff\T12` won't.
1720
1821
## Samples in the MR Feature Tool (writable packages)
1922

@@ -73,3 +76,19 @@ The simple dependency graph is linear. In the following list, each item depends
7376
Another option for acquiring WLT is to get the source directly from GitHub (either via git or as a zipfile) and copy it into your project. This is equivalent to installing from the .unitypackages above.
7477

7578
To get the source matching a release, find the [appropriate branch](https://github.com/microsoft/MixedReality-WorldLockingTools-Unity/branches). For example, the source for release v1.2.4 is in branch `release/v1.2.4`.
79+
80+
## About the installation path length limit
81+
82+
### When installing from Mixed Reality Feature Tool
83+
84+
Windows imposes a [maximum path length of 260 characters](https://docs.microsoft.com/windows/win32/fileio/maximum-file-path-limitation?tabs=cmd). The Frozen World Engine package has some very long internal paths. The Mixed Reality Feature Tool (or Unity's UPM, depending whom you want to blame), adds some very long strings in the middle.
85+
86+
You will know if you have passed the MAX_PATH limit if you see errors in the Unity Console complaining about not being able to find part of a path.
87+
88+
Ironically, the first file to hit the limit isn't even used on Windows, it's for the iOS build (iOS doesn't have the MAX_PATH limit). WLT will build and run fine without it. However, the existence of the file will interfere with the running of some important MRTK scripts, and probably destabilize Unity in other subtle ways.
89+
90+
### When installing from .unitypackage files or from github
91+
92+
Without the UPM/MRFeatureTool inserting characters into the installation paths, there is a bit more breathing room. However, the internal path hierarchy within the Frozen World Engine is still quite deep. When installing from unitypackage files or from github, the installation folder should be about 100 characters long or less.
93+
94+
There are more investigations and discussions in this [WLT issue](https://github.com/microsoft/MixedReality-WorldLockingTools-Unity/issues/161).

0 commit comments

Comments
 (0)