Hello,
I’ve got a little problem with the Terrain-Editor:
When I want to add my own tree, but it says:
“the tree Tree1 couldn’t be instantiated because it contains no valid mesh-renderer”
My tree-gameobject contains some child-objects. Could that be a problem?
Is there definitely a mesh renderer on the object and/or all child objects that have geometry?
yes, there is, but the parent-object has no mesh on it, because it is just a container for the tree parts.
From the documentation…
“Every tree should consist of a single mesh with two Materials. One for the trunk and one for the leaves.”
ok. is there a possibility to put the child-objects together in unity?
Well, technically you could use the Combine Children script on it, hit play, export the tree as an OBJ, and re-import it into Unity… but the easiest thing to do would be to use a 3D app for this purpose.
how can i export my model as a .obj file (sorry if this is a stupid question)