Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetPlayerAssetRepresentations(GUID, BuildTarget)

Obtains a list of visible objects directly contained inside an asset.
Read time 1 minuteLast updated 12 days ago

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.