(Sorry in advance for the large image.)
Hey guys, I’m still trying to work out this bit with CombineChildren.CS in Unity Basic, and this time I’ve included a screenshot that I hope will be useful.
I’ve got simple incense burners here that total 94 vertices. I placed all three in this test scene, made two of them children of the third, then dropped the script onto the parent object. No effect.
I pulled the script directly from a support site, so I’m pretty sure the script itself is valid. The only variable I can think of to play with that I haven’t is the Static checkbox, but as you can see, it doesn’t seem to exist.
(I could’ve swore I found it a few weeks ago, and my boss showed me a screenshot of where it is in unity iPhone, but I can’t find it.)
In addition, I’ve also pasted a series of error messages that my boss got when he tried attaching the script to other parent objects in the game. Most of it seems self-explanatory,
but maybe it’s trying to tell me something I’m not getting.
Mesh.vertices is too large. A mesh may not have more than 65000 vertices.
UnityEngine.Mesh:set_vertices(Vector3[ ])
MeshCombineUtility:Combine(MeshInstance[ ], Boolean) (at Assets/Plugins/MeshCombineUtility.cs:170)
CombineChildren:Start() (at Assets/Plugins/CombineChildren.cs:83)
[/Users/build/builds/unity-iphone/iphone/Projects/../Runtime/Filters/Mesh/LodMesh.cpp line 452]
Mesh.normals is out of bounds. The supplied array needs to be the same size as the Mesh.vertices array.
UnityEngine.Mesh:set_normals(Vector3[ ])
MeshCombineUtility:Combine(MeshInstance[ ], Boolean) (at Assets/Plugins/MeshCombineUtility.cs:171)
CombineChildren:Start() (at Assets/Plugins/CombineChildren.cs:83)
[/Users/build/builds/unity-iphone/iphone/Projects/../Runtime/Filters/Mesh/LodMesh.cpp line 578]
Mesh.colors is out of bounds. The supplied array needs to be the same size as the Mesh.vertices array.
UnityEngine.Mesh:set_colors(Color[ ])
MeshCombineUtility:Combine(MeshInstance[ ], Boolean) (at Assets/Plugins/MeshCombineUtility.cs:172)
CombineChildren:Start() (at Assets/Plugins/CombineChildren.cs:83)
[/Users/build/builds/unity-iphone/iphone/Projects/../Runtime/Filters/Mesh/LodMesh.cpp line 558]
Mesh.uv is out of bounds. The supplied array needs to be the same size as the Mesh.vertices array.
UnityEngine.Mesh:set_uv(Vector2[ ])
MeshCombineUtility:Combine(MeshInstance[ ], Boolean) (at Assets/Plugins/MeshCombineUtility.cs:173)
CombineChildren:Start() (at Assets/Plugins/CombineChildren.cs:83)
[/Users/build/builds/unity-iphone/iphone/Projects/../Runtime/Filters/Mesh/LodMesh.cpp line 498]
Mesh.uv1 is out of bounds. The supplied array needs to be the same size as the Mesh.vertices array.
UnityEngine.Mesh:set_uv1(Vector2[ ]) (at /Users/build/builds/unity-iphone/iphone/Runtime/Export/Generated/Graphics.cs:1006)
MeshCombineUtility:Combine(MeshInstance[ ], Boolean) (at Assets/Plugins/MeshCombineUtility.cs:174)
CombineChildren:Start() (at Assets/Plugins/CombineChildren.cs:83)
[/Users/build/builds/unity-iphone/iphone/Projects/../Runtime/Filters/Mesh/LodMesh.cpp line 518]
Mesh.tangents is out of bounds. The supplied array needs to be the same size as the Mesh.vertices array.
UnityEngine.Mesh:set_tangents(Vector4[ ])
MeshCombineUtility:Combine(MeshInstance[ ], Boolean) (at Assets/Plugins/MeshCombineUtility.cs:175)
CombineChildren:Start() (at Assets/Plugins/CombineChildren.cs:83)
[/Users/build/builds/unity-iphone/iphone/Projects/../Runtime/Filters/Mesh/LodMesh.cpp line 606]
Failed setting triangles. Some indices are referencing out of bounds vertices.
UnityEngine.Mesh:SetTriangleStrip(Int32[ ], Int32) (at /Users/build/builds/unity-iphone/iphone/Runtime/Export/Generated/Graphics.cs:1071)
MeshCombineUtility:Combine(MeshInstance[ ], Boolean) (at Assets/Plugins/MeshCombineUtility.cs:177)
CombineChildren:Start() (at Assets/Plugins/CombineChildren.cs:83)
