Search Unity

Terrain changed enent

Discussion in 'Scripting' started by LasseTM, Jan 26, 2015.

  1. LasseTM

    LasseTM

    Joined:
    Aug 28, 2013
    Posts:
    6
    I am creating a script that bases its outcome from the terrains heightmap.
    As a part of a "debug" function, i would like to find an "onTerrainChanged" event.

    I cant figure out how to get notified when the terrain has been changed, when i am in the editor.

    Does anyone know how to do this? Or is it imposible?
     
  2. tobyheadcast

    tobyheadcast

    Joined:
    Aug 5, 2014
    Posts:
    25
    Look up some tutorials on creating events yourself , google events in c#
     
  3. LasseTM

    LasseTM

    Joined:
    Aug 28, 2013
    Posts:
    6
    I am not looking for "creating events yourself". I know how to create events with C#.

    I am looking for a way to get notified when the terrain heightmap has been changed by the terrain script in the editor.
     
  4. LasseTM

    LasseTM

    Joined:
    Aug 28, 2013
    Posts:
    6
    No solution to this?