Disable terrain EnableTreeColliders in script
I have an open world game with a large number of terrain tiles and an editor script to manage all of them. I'm trying to access TerrainCollider > EnableTreeColliders in my terrain manager script to...
View ArticleThe type or namespace name 'TerrainAPI' does not exist in the namespace...
***Unnecessary using directive. [Assembly-CSharp.Player, Assembly-CSharp]csharp(CS8019) The type or namespace name 'TerrainAPI' does not exist in the namespace 'UnityEngine.Experimental' (are you...
View ArticleMemory leak when editing terrain
Any time I try to edit the terrain in a project I'm working on I keep getting an error after exiting play mode that ALLOC_TEMP_MAIN has unfreed allocations which takes my frame rate from around 150 fps...
View ArticleHow to raise/lower a part of the terrain through script
I'm a bit new to unity terrain and I don't know much about them. I was wondering if It's possible to change the height of a part of the terrain through script not the editor here's an example of what I...
View ArticleTerrain not appearing shaded unless very close
I'm trying to follow along with the [terrain tutorial][1] but I'm not getting any shadows on the terrain and it makes it very hard to see. If I switch to wireframe or zoom in very closely I can see it,...
View ArticleTerrain Collider update c#
Hi all, I'm displacing a Terrain object using image(s) at runtime. The problem I'm running into is that the terrain collider isn't getting updating (I realised that I need to do it manually in the c#)....
View Articlehow can i erase/cut/slice my terrain
i want to slice like in this picture i search on google but i cant find anything because idk "key words" help pls ![alt text][1] [1]: /storage/temp/172681-screenshot-1.png
View Articlehow to chande terrain layer texture during runtime,how to change terrain...
My english is bad So I am making a little farm game in Unity ![alt text][1] [1]: /storage/temp/171607-未命名.png Im trying to change the texture during runtime with C# scripts ( I marked in the picture )...
View ArticleMoving terrain upwards to allow room under it's base.
So i finally got the gist of the terrain editor for my game. With that being said, I created the terrain on the flat base level. So i am making an island map, and would like to move my mountain up so i...
View ArticleUnity Terrain GameObject versus Custom Terrain
I was recently exploring and working through parts of [Sebastian Lague's Procedural Landmass Generation][1] series. Absolutely excellent series and I would recommend it to anyone looking to learn more...
View ArticleTerrain detail meshes are invisible
So, im making a terrain and I want to decorate it using primarily detail meshes from the unity asset store. However, when I try to use the prefab, they do not appear or appear invisible. I checked a...
View ArticleHow Do I Get a Heightmap of pre-existing terrain for use in coding?
I was using a script that would auto generate a terrain and heightmap for that terrain and forest with the trees and bushes placements depending on the heightmap of the terrain but im trying to change...
View ArticleTo support physics Colliders , the resolution of the hole’s mask Texture is...
Hello everyone. When i try to use Terrain -Paint holes documentation i find this strange info.Can anyone explain me what does it mean? To support physics Colliders, the resolution of the hole’s mask...
View ArticleHow do you create a splendid background mountain?
How do you create a background mountain like this? ![alt text][1] There are some basic question about creating a scene like this. 1. shall I use terrain texture or grass mesh to build grasses? If I use...
View ArticleTerrain Becomes Purple when assigning a Render Pipeline Asset.
image?![alt text][1] [1]: /storage/temp/138957-untitled.png is there any fix for this? I literally searched everywhere, tweaked every setting but with no hope even generated lighting and everything and...
View ArticleResize Terrains and adjust Neighbors positions
Hello, is there a way to resize terrain tiles with ScaleFactor and adjust neighbors![alt text][1] i need to do that via scripte : private void RescaleTerrains() { float w_bounds = (maxBounds.x -...
View ArticleI have on my terrain toolbar only four items instead of seven how can I...
The height tools are missing!
View ArticleThe problem of making large terrains
我正在尝试创建一个大型场景。在测试地形的过程中。发现了一些问题,希望有人能帮助我 我测试了用4X4,总共16快1000X1000单位的terrain来拼合成一张大的terrain。当我在这个地形上生成tree之后。整个unity变得非常慢 I'm trying to create a large scene.While testing the terrain.I found some...
View ArticleTerrain thickness doesn't stop fast moving objects
I've been working on a terrain and my projectile prefab will pass through it in certain spots even with the thickness set quite high (I went up to 100). The only thing that works is making my...
View Articlesnowy environment like this?
Is it possible to achieve exact thing (in the link below) with unity, any tutorial or something? https://m.youtube.com/watch?v=B4dV5cLQAMI
View Article