Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by markfrancombe · Apr 21, 2016 at 10:50 PM · terrainterraindata

Updating the terrain collider after importing raw data

I have 7 identical terrains that get loaded seperately (they are populated with different texturea and foliage to show different times of the year) I had to adjust the actual shape of the terrain, but wanted to keep all the texturing work.

I altered ONE terrain, how I wanted it, exported the RAW terrain data from the setting menu,, then imported it into all my 6 other scenes terrain.

THIS WORKED GREAT!

However, I needed to re-make some of my NPC waypoint paths. so I started that job.. but the points WERE NOT conforming to the new terrain...

Now I realise they are conforming to THE OLD terrain--- YES I have copied that data into the collider slot!

HERES THE QUESTION! How can I throw away the old terrain data, and update it to what actually exists!

Thanks

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image MadMojo · Jul 12, 2017 at 10:19 PM 0
Share

This still seems to be a problem. Would be nice if there was a one-click editor way to generate new terrain data based off of the actual terrain object.

4 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by markfrancombe · May 24, 2016 at 09:06 PM

YES! @gecko The trick is realise that there isa top level terrain component (what you are trying to change) BUT there is a secret sneaky version below that. To get to that. Click the little tiny menu in the top right above the component and select DEBUG. The usual terrain editing features disappears but you get a new slot for terrain data. So for example, to make "some change" to a copy of a terrain without losing the original. 1. copy your component 2. hit debug 3. select the terrain data slot and duplicate that with new name. 4. open new component under debug, and drag in the new copy 5. turn debug off in both

Now you should be able to edit either without the other being affected.

Mark

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image markfrancombe · May 24, 2016 at 09:08 PM 0
Share

Hmm.. now I think about it... this might not be the solution... grrr... damn what did I do??+ sorry... something like this however...

avatar image gecko · May 24, 2016 at 09:52 PM 0
Share

Thanks!! This did fix it for me!

avatar image
0

Answer by gecko · May 24, 2016 at 08:50 PM

@markfrancombe - Did you ever solve this? I'm having the same problem in 4.7.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Acreates · May 17, 2017 at 03:06 AM

The visual part of my terrain does not match up to my collision, any way to get them to align again?

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Darkgaze · Mar 26, 2019 at 07:51 AM 0
Share

check out my answer

avatar image
0

Answer by Darkgaze · Mar 26, 2019 at 11:17 AM

For anybody looking for help, to update the TerrainCollider you have to update the heights on the terraindata of both the terrainCollider and the terrain. Seems like there is a copy. Changing the terrain only will update the visualization but not the collider itself.

 terrainCollider.terrainData.setHeights(...)
 terrain.terrainData.setHeights(...)

In v2019 the terrain has been moved to GPU and the API changed, so maybe this doesn't work. Seems like there is a function to update "dirty" data.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

61 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Terrain "Creating System" consuming infinite memory [Please Help] 0 Answers

Terrain settings resets on changing scene? 1 Answer

Strange Blue Emission on Speedtrees? 0 Answers

How to import terrain and image generated from UAV to unity? 0 Answers

How to export Heightmap(Terrain) Raw.(Script) 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges