Skip to content

Format

typescript
AssetObject.toString()

class: AssetObject

Description

Returns the type of the asset object.

Parameters

param_nametypedescription

Return

typedescription
stringThe asset type.

Code Example

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