Editar

Compartilhar via


MixedRealityToolkitFiles.MapRelativeFilePathToAbsolutePath Method

Definition

Overloads

MapRelativeFilePathToAbsolutePath(String)

Maps a single relative path file to MRTK folders to its absolute path, if found. Otherwise returns null.

MapRelativeFilePathToAbsolutePath(MixedRealityToolkitModuleType, String)

Overload of MapRelativeFilePathToAbsolutePath which provides the ability to specify the module that the file belongs to.

MapRelativeFilePathToAbsolutePath(String)

Maps a single relative path file to MRTK folders to its absolute path, if found. Otherwise returns null.

public:
 static System::String ^ MapRelativeFilePathToAbsolutePath(System::String ^ mrtkPathToFile);
public static string MapRelativeFilePathToAbsolutePath (string mrtkPathToFile);
static member MapRelativeFilePathToAbsolutePath : string -> string
Public Shared Function MapRelativeFilePathToAbsolutePath (mrtkPathToFile As String) As String

Parameters

mrtkPathToFile
String

Returns

Remarks

For example, this will map "Inspectors\Data\EditorWindowOptions.json" to its full path like "c:\project\Assets\Libs\MRTK\MixedRealityToolkit\Inspectors\Data\EditorWindowOptions.json". This assumes that the passed in mrtkPathToFile is found under the "MixedRealityToolkit" folder (instead of the MixedRealityToolkit.SDK, or any of the other folders).

Applies to

MapRelativeFilePathToAbsolutePath(MixedRealityToolkitModuleType, String)

Overload of MapRelativeFilePathToAbsolutePath which provides the ability to specify the module that the file belongs to.

public:
 static System::String ^ MapRelativeFilePathToAbsolutePath(Microsoft::MixedReality::Toolkit::Utilities::Editor::MixedRealityToolkitModuleType module, System::String ^ mrtkPathToFile);
public static string MapRelativeFilePathToAbsolutePath (Microsoft.MixedReality.Toolkit.Utilities.Editor.MixedRealityToolkitModuleType module, string mrtkPathToFile);
static member MapRelativeFilePathToAbsolutePath : Microsoft.MixedReality.Toolkit.Utilities.Editor.MixedRealityToolkitModuleType * string -> string
Public Shared Function MapRelativeFilePathToAbsolutePath (module As MixedRealityToolkitModuleType, mrtkPathToFile As String) As String

Parameters

mrtkPathToFile
String

Returns

Remarks

When searching for a resource that lives in the MixedRealityToolkit.SDK folder, this could be invoked in this way: MapRelativeFilePathToAbsolutePath(MixedRealityToolkitModuleType.SDK, mrtkPathToFile)

Applies to