based on the traditional Internet,the metauniverse technology has put forward higher requirements in terms of immersion,participation,sustainability and other aspects,so it will be supported by many independent tools,platforms,infrastructure,protocols,etc.With the increasing maturity of AR,VR,5G,cloud computing and other technologies,the metauniverse is expected to gradually move from concept to reality.
先铺上编码:链游开发设计 链游系统定制源码开发 角色扮演游戏PVP卡牌对决
PrefabUtility.CreatePrefab(prefabFullPath,CREATE_OBJ));
prefabFullPath格式为储存的路线 需要储存的名称 .prefab文件后缀名
比如:application.datapath testobj .prefab
CREATE_OBJ给你需要储存为预制体的网络游戏物件类
GameObject selectedGameObject=Selection.activeGameObject;
能通过Selection方式得到Hierarchy对话框中挑中物件,
还可以通过外界传,总而言之这一就是需要做成预制体的网络游戏物件
CreatePrefab方式返回是一个游戏物件类
UnityPackage的导出来
先贴代码:
string exprotPath=EditorUtility.SaveFilePanel("导出来包途径","","","unitypackage");
var AssetPathName=AssetDatabase.GetDependencies(assetPath);
AssetDatabase.ExportPackage(AssetPathName,exprotPath "bao.unitypackage",ExportPackageOptions.IncludeDependencies|ExportPackageOptions.Default);
exprotPath为需要导出来的路线,这里用Unity的SaveFilePanel类,第一个string为对话框文章标题,第二个string为默认开启的文件目录,第三个string为默认设置文件夹名称(当打开对话框中可以任意填好),第四个string为文件后缀名,拓展名,这里大家填好unitypackage