Version: 5.4
public static string GetAssetId (GameObject go);

Parámetros

go Target game object to get asset Id for.

Valor de retorno

string The assetId of the game object's prefab.

Descripción

The UNet spawning system uses assetIds to identify how spawn remote objects. This function allows you to get the assetId for the prefab associated with an object.