Utilities.TryGetGuidForAsset(FileInfo, Guid) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Parses a .meta file to extract a guid for the asset.
public:
static bool TryGetGuidForAsset(System::IO::FileInfo ^ assetPath, [Runtime::InteropServices::Out] Guid % guid);
public static bool TryGetGuidForAsset (System.IO.FileInfo assetPath, out Guid guid);
static member TryGetGuidForAsset : System.IO.FileInfo * Guid -> bool
Public Function TryGetGuidForAsset (assetPath As FileInfo, ByRef guid As Guid) As Boolean
Parameters
- assetPath
- FileInfo
The path to the asset (not the .meta file).
- guid
- Guid
The guid extracted.
Returns
True if the operation was successful.