示例#1
0
 private void SetAreaResizerPositions(Vector3[] positions)
 {
     foreach (BaseHandle handle in AllHandles)
     {
         if (handle is TerrainAreaHandle)
         {
             TerrainAreaHandle terrainAreaHandle = (TerrainAreaHandle)handle;
             terrainAreaHandle.AreaResizerPositions = positions;
             terrainAreaHandle.TryRefreshCommandBuffer();
         }
     }
 }
示例#2
0
 private void SetPosition(Vector3 value)
 {
     foreach (BaseHandle handle in AllHandles)
     {
         if (handle is TerrainAreaHandle)
         {
             TerrainAreaHandle terrainAreaHandle = (TerrainAreaHandle)handle;
             terrainAreaHandle.m_initialized = true;
             terrainAreaHandle.Position      = value;
             terrainAreaHandle.TryRefreshCommandBuffer();
         }
     }
 }