private SetDynamicAssetId ( NetworkHash128 newAssetId ) : void | ||
newAssetId | NetworkHash128 | |
return | void |
internal static void RegisterPrefab(GameObject prefab, NetworkHash128 newAssetId) { NetworkIdentity component = prefab.GetComponent <NetworkIdentity>(); if ((bool)component) { component.SetDynamicAssetId(newAssetId); if (LogFilter.logDebug) { Debug.Log("Registering prefab '" + prefab.name + "' as asset:" + component.assetId); } s_GuidToPrefab[component.assetId] = prefab; } else if (LogFilter.logError) { Debug.LogError("Could not register '" + prefab.name + "' since it contains no NetworkIdentity component"); } }