![]() |
CodeSmile AssetDatabase 1.10
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 or newer it uses AssetDatabase.GetMainAssetTypeFromGUID. In earlier versions the type is obtained from the path's GUID.
| guid | Guid of an asset. |
Definition at line 971 of file Asset.File.cs.
References Asset.Path.Get(), and GetMainType().
Here is the call graph for this function: