Skip to content

Format

typescript
AssetObject.assetType

class: AssetObject

Description

(Read Only) The type of the resource.

Parameters

param_nametypedescription

Return

typedescription
AssetTypeThe type of the resource.

Code Example

typescript
let asset = Resources.Load<AnimationClip>(AnimationClip, "D5808510E9BF4D73A6AACAFD475064C5");
asset.assetType;