- Home /
3d meshes not drawn on some platforms
Hi guys,
Usually when working with Unity I'm using it's build-in Game preview for testing purposes. From time to time of course I'm checking my work on different devices (usually Android based). Recently I've bought an iPad and was able to test the game there too and it works fine. Now.. Today I've checked Web based Unity plugin as well as Windows 8, and stand-alone Windows platform builds and to my surprise some 3d objects/meshes disappeared. It seems that their meshes are not being drawn and I really haven't got a clue why? To be more precise, some objects are drawn as they should be and some at the other hand are drawn partially - that is, when the objects are composed of several meshes - some parts are drawn and the others aren't.
Additionally I've noticed that the objects which are comprised of several LODs are drawn properly in low-poly. Any ideas what's happening? All my 3d objects were created with the use of Luxology Modo.
Answer by KEric · Jul 02, 2014 at 12:43 PM
I have finally found the culprit. The below execution was messing up my 3d objects on some platforms. Curiously all worked well on Android and iOS...
float y = transform.FindChild("Mesh").GetComponent<MeshFilter>().
mesh.bounds.size.y;
I swapped that code with the one below and the problem went away yay!
float y = transform.FindChild("Mesh").renderer.bounds.size.y;
Your answer
Follow this Question
Related Questions
Why does my game require so much rendering power? 1 Answer
A node in a childnode? 1 Answer
failed to initialize graphics 0 Answers
How can you represent overlapping energy fields? 0 Answers
Why is the CPU usage so high? 1 Answer