Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Asset Forge

Create your own 3D models and 2D sprites! · By Kenney

Import and use asset as a Tree

A topic by eusthace created Oct 01, 2020 Views: 2,120 Replies: 4
Viewing posts 1 to 4

Hi,

I am trying to import a tree model from asset forge into unity and use it as a tree for my terrain.

It seeems that is not as easy as I thought, I am getting this error: 
```

The tree Tree couldn't be instanced because the prefab contains no valid mesh renderer.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&

```

Any help?
Thanks, E

What are the steps you're taking to import? What file format are you exporting from Asset Forge?

(1 edit)

Thank you for your reply.

I am exporting a tree from Asset Forge using Unity preset (FBX).

Then dragging file into my Unity project.

I've added a terrain, then from Inspector > Terrain > Paint Trees > Edit Trees > Add Tree, then I am dragging asset to Tree Prefab and changing Bend Factor to 1. Finally I am getting error: 

The tree Tree couldn't be instanced because the prefab contains no valid mesh renderer.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

Thank you again for your help.

Hey, well specifically for terrain your mesh will have to adhere to a few rules that Unity set-up. One of those rules is (according to the error message you posted) that your prefab contains a mesh renderer. If it doesn't, that means your mesh is probably in a child of the prefab instead of the prefab itself. Hope that helps!

Thank you for your reply. I am going to try to change the mesh. Thanks!