Utilities.TryGetGuidForAsset(FileInfo, Guid) Method

Definition

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

Boolean

True if the operation was successful.

Applies to