![]() ![]() A backup is therefore strongly recommended!", "Yes, I've made a backup: GO", "Abort") Ĥ1 Output(EditorApplication.timeSinceStartup " Started conversion of Unity networking -> Photon") Ĥ3 //Ask to save current scene (optional)Ĥ4 EditorApplication.SaveCurrentSceneIfUserWantsTo() Ĥ6 EditorUtility.DisplayProgressBar("Converting.", "Starting.", 0) Ĥ8 //Convert NetworkViews to PhotonViews in Project prefabsĤ9 //Ask the user if we can move all prefabs to a resources folderĥ0 bool movePrefabs = EditorUtility.DisplayDialog("Conversion", "Can all prefabs that use a PhotonView be moved to a Resources/ folder? You need this if you use Network.Instantiate.", "Yes", "No") ĥ3 string prefabs = Directory.GetFiles("Assets/", "*.prefab", SearchOption.AllDirectories) ĥ6 EditorUtility.DisplayProgressBar("Converting.", "Object:" prefab, 0.6f) ĥ8 Object objs = (Object)AssetDatabase.LoadAllAssetsAtPath(prefab) Ħ2 if (obj != null
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |