CodeSmile AssetDatabase 1.9
Unity's AssetDatabase in enjoyable, consistent, concise, convenient, comprehensible, safe, documented form.
|
|
static |
Returns the type of the main asset for the GUID.
In Unity 2023.2 it uses AssetDatabase.GetMainAssetTypeFromGUID. The method exists in 2022.2 but not in the early patch versions 0f1 through 6f1. In earlier versions the type is obtained from the path's GUID.
guid | Guid of an asset. |
Definition at line 909 of file Asset.File.cs.
References Asset.Path.Get(), and Asset.File.GetMainType().