ドキュメント

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.