internal static string GetStringForAssetId(NetworkHash128 assetId) { if (QNetworkScene.GetPrefab(assetId, out var gameObject)) { return(gameObject.name); } return(QNetworkScene.GetSpawnHandler(assetId, out var func) ? func.GetMethodName() : "unknown"); }
public static void RegisterPrefab(GameObject prefab, NetworkHash128 newAssetId) => QNetworkScene.RegisterPrefab(prefab, newAssetId);