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

Parameters

go Target GameObject to get assetId for.

Returns

string The assetId of the game object's prefab.

Description

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