示例#1
0
        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");
        }
示例#2
0
 public static void RegisterPrefab(GameObject prefab, NetworkHash128 newAssetId) => QNetworkScene.RegisterPrefab(prefab, newAssetId);