
unity file and deleted it, reducing the total file size to 470kb. I found a reference to a deleted array that we threw a huge bunch of data in, in the. unity file were old and had been deleted long ago. unity file with a text editor, I found lots of data belonging to variables that have been. I attempted to create a new scene, copy everything over and then save the new scene, but it was exactly the same size as before.Īfter investigating the. We're also trialing Unity Collab now, and uploading 1mb scene files everytime you want to change a variable in a serialized field takes a while. While it doesn't seem like much, compared to the 40kb sizes we were working with, there's some sort of sudden increase. We ended up just saving our scene under a different name, exporting it as a package, and importing it into the other copy of the game and copying everything relevant over.Īfter this process was complete, our. We couldn't get that to work so we attemped to discard the merge changes and try again with Tortoisemerge, but again we had no luck. We attempted several methods of merging our game, since we were both using the same scene, we attempted to merge with YAMLmerge and P4Merge. At this stage our unity scenes were about 40kb each. We each worked on our portion of the game a little bit then we attempted to merge. unity file for our main scene was about 30kb.
DIFFMERGE VS MELD SOURCETREE CODE
When we forked our code base to work on it separately, the size of the.

We've been using Git as a way to keep some version control for our game which is a small puzzle game based entirely on canvas/UI elements. I'm quite new to Unity and coding in general and we've encountered this little issue suddenly with the physical file size of our. Seems to contain deleted serialized data.

TL DR: Unity file size shot up 20x when trying to merge. Let me know if you need any other details.
DIFFMERGE VS MELD SOURCETREE HOW TO
I've thought about maybe trying to find similar objects from the perspective of the grid to see if there are any objects on the grid that are 5 up or 5 across, but I'm not sure how to use the Grid object like this other than using it as a reference to snap objects into place when being dragged. I'm building it in 3D and I think my approach with the colliders might be wrong. The question I have now is that in games like Evermerge and TopWar, when you merge one object with another if there are items of the same tier you can merge as well then you can merge them all at once. Then OnMouseUp() resets the local variables for another object to be dragged. GetComponent ().OutlineColor = Color.red Private void OnTriggerEnter(Collider collision)ĭebug.Log("Colliding With: " + ) At the moment I have the ability to merge using the code below. I'm trying to make a top-down game similar to Clash and TopWar with the merge mechanics. Unfortunately i'm not able to have the final gameobject with all the preexisting materials of each mesh to merge: could someone help me in this? Var renderer = combinedObject.AddComponent () Size = + size ĬombineInstance combine = new CombineInstance MeshRenderers = gameObjects.GetComponent () MeshRenderer meshRenderers = new MeshRenderer ĬombinedMesh.subMeshCount = gameObjects.Length

Public void Merge(GameObject gameObjects, string Name) I'm trying to merge meshes with different material on a single mesh with different submeshes associated: every mesh i try to merge is considered as a single submesh of the new generated gameobject, each with the original material. Here you can see a prototype tree before and after merging.Īnyone has the same issue? Can you help me or direct me to a corresponding thread? I recently updated Unity to 2019.3.5f1 (but the issue did not happen directly after the update) and I use the latest Probuilder 4.2.3. I have been using Probuilder for one year now and I did not have this problem before. KeyNotFoundException: The given key was not present in the dictionary. When I try to pick/move an edge I get the following message in the console: > Blockquote When I merge two objets in Probuilder I get a new object whose I cannot grab/move its vertices, edges or faces (like it is not Probuilderised).
