文档

Unity Engine

Unity Engine

GetPlayerAssetRepresentations(GUID, BuildTarget)

Obtains a list of visible objects directly contained inside an asset.
阅读时间1 分钟最后更新于 1 个月前

Definition

public static ObjectIdentifier[] GetPlayerAssetRepresentations(GUID asset, BuildTarget target)

Parameters

asset

GUID
The GUID of the asset.

The build target to get the representations for.

Returns

Type

Description

ObjectIdentifier[]An array of ObjectIdentifier structs representing the visible objects contained in the asset.

Remarks

The returned objects are not loaded, and thus this method is more performant than AssetDatabase.LoadAllAssetRepresentationsAtPath.