AutoTiles.AutoTilesBase.RebuildTiles C# (CSharp) Метод

RebuildTiles() публичный Метод

This method triggers the rebuild process. It should be triggered manually as soon as the tilemap changes
public RebuildTiles ( ) : void
Результат void
        public void RebuildTiles()
        {
            if (UpdateFrameworkReferences()) {
            UpdateNumberOfLayers();
            RebuildLayerInfo();
            _mapDimensions = GetDimensions();

            if (indexSpriteMap == null) {
              BuildIndexSpriteMap();
            }

            UnityEngine.Random.seed = _randomSeed;

            for (int l = 0; l < _numberOfMapLayers; l++) {
              if (LayerFlags[l]) {
            for (int x = 0; x < _mapDimensions.x; x++) {
              for (int y = 0; y < _mapDimensions.y; y++) {
                int bitmask = CalculateBitmask(x, y, l);
                if (bitmask != -1) {
                  SetTile(bitmask, x, y, l);
                }

              }

            }

              }

            }

            RebuildFramework();
              } else {
            Debug.LogWarning("No tk2dTileMap component available on this gameObject.");
              }
        }