public void Update(TerrainTileComponent component)
        {
            var shouldClear = Size != component.Size ||
                              MaxHeight != component.MaxHeight ||
                              HeightMap != component.HeightMap ||
                              UvScale != component.UvScale;

            Enabled   = component.Enabled;
            Size      = component.Size;
            HeightMap = component.HeightMap;
            MaxHeight = component.MaxHeight;
            UvScale   = component.UvScale;
            Material  = component.Material;

            if (shouldClear)
            {
                Mesh = null;
                Data = null;
                component.Clear();
            }
        }
 public TerrainTileRenderObject(TerrainTileComponent component)
 {
     Update(component);
 }