Terrain Editor Adds The Trees in Wrong Rotation (Custom Trees Made With Blender)

I’m using version 2020.3.4, and I’m trying to place my custom trees using the terrain editor. I’ve been struggling to fix this issue for days but could not find a solution.

I tried to change the prefab’s rotation but didn’t work.

And also, even if my model includes LOD group and mesh renderer, unity gives me a warning in Terrain Panel that says:

7155112--856513--error.png

I don’t know if this is the reason that makes my trees placed in a wrong rotation while using the terrain editor.

When I place some trees with the brush it looks like this:

And here are all details of my tree model:

This might be because your scene includes the default camera and lights. Unity started importing those with its default Blender import script starting sometime in Unity2019 and it will break a lot of prefabs.

You can either a) remove the Camera and Light and everything except the LOD group objects (properly named), or you can modify the Blender import script embedded in Unity. This means you would need to re-modify it every time you switched to a new version of Unity, but I was lazy and I do this. Here’s more about that idea:

Blender3D import FBX:

https://discussions.unity.com/t/832303/2

The script that Unity uses:

./Hub/Editor/2020.2.1f1/Unity.app/Contents/Tools/Unity-BlenderToFBX.py

More on fixing it:

https://discussions.unity.com/t/839045/4

Blender is a right-handed coordinate model, Unity is a left-handed.

When you import any Blender object you’ll see its rotation is (-90, 0,0) (or close to that).

To get a tree working with terrain, the tree must be modeled to look upright when rotation is (0,0,0) in Unity.

Try making your tree in Blender so that “up” is actually +Y on Blender’s coordinates (green line positive).

This basically involves:

  • load your tree
  • enter EDIT mode (not OBJECT mode!)
  • select all
  • make sure your pivot is correct (probably should be (0,0,0))
  • rotate geometry -90 on X (keys are R X -90)
  • leave EDIT mode
  • save the laid-down tree

That tree should paint properly with Unity terrain.

7155631--988374--TreeInBlender.jpg

1 Like
How do I create stadiums?
Problem with unity camera when importing blocks from bledner in 2d project
Unity issues with Blender 3.0, Version reading issue?
Vegetation spawner
How to Spawn Grass at Runtime?
Weird problem when importing Blender to Unity
ParticleSystem behavior changed between Unity 2020 and 2022
Importing FBX into 2D Platformer unity
Noob question about importing Blender models
Weird lines in object(exported blender texture to unity)
Project broken after moving it to a new pc
Boids always facing wrong direction...
Sudden change in naming convention for Blender imports
Issues with model deformation
Z figthing workarounds
How to add a audio source to a second FPS dual glock gun?
Export from Unity to Blender
Change texture Image from Blender Importation
Bone in Avatar Configuration Breaking T-Pose - Seems Fine in Blender?
Terrain trees
Exporting the rig seperately from the mesh
Any cons to keeping models as blend files?
Problem with importing. blender to unity
Weard blender meterial, look diffrent in blender and unity
How to Change The Default Shader of the elusive "None (Material)" given to imported FBX files
Adding new Items from blender
Is it possible to "flag" a material at blender and read it in unity?
Imported Blender Files do not include Blender Links
Unity losing components and scripts on objects after reimport edited 3d model file
Losing mesh references + other various issues on Upgrade (2018 LTS --> 2019 LTS)
From Blender to Unity scene settings
Outputting in Blender for Unity and how far should it go?
Meshes that are linked instances in Blender loose material when importet to Unity
Need help deleting "Armature" bone
Exporting Animations from Blender to Unity
Map size for a 2d/3d game?
Box Collider 2D Not Working on Blender Model
How to place my own tree model
Different types of objects get imported differently, resulting in a bunch of weird rotations and parenting issues
Unity Input Action not working with Send Message behaviour
Why are Blender meshes Imported like this?
About exporting animation from blender
I need help with particle systems, specifically the mesh rendering part
Direct .blend Import to Unity Messes Up Hierarchy – Why?
Texture Mismatch Between Blender and Unity
Visual discrepancies between a model when viewed in blender or unity
Why are the colors different in unity and blender?
Models having visible "seam line"
Terrain with Overlay and buildings not showing after import,
Upgraded to 6.2 from 2022 version, prefabs not working
Problems importing FBX file
Level Design with Blender workflow
Unity gives me Empty genric avatrs for my 3d models
Best practice for separating level meshes in Unity (ceiling and main map)?
Rendering Textures in Blender for HDRP
Quick question about building scenes
Probuilder select faces from the background objects
Blender To Unity Conversion not going well

Thanks, that solved my problem

1 Like

I’m in the editer I added tree won’t do anything when I click

Zoom in tight to the point on the ground where you clicked… it’s probably densely forested when you get up close.

Remember LOD…

What new to this