- Home /
 
               Question by 
               jjfawkes · Aug 11, 2018 at 02:21 PM · 
                2dscripting problemtilemaptiles  
              
 
              Confused about ITilemap interface and concrete tilemap classes
Hi,
I am trying to access Tilemap methods, such as, SetTile, which are not defined in ITilemap interface. So I tried casting the ITilemap object inside the GetTileData method to Tilemap, but I get a compile time error that such a conversion is not possible.
Then I noticed that actual Tilemap class does not implement ITilemap interface, but it implements GridLayout interface, which is very confusing. 
Couple of questions:
1. How come Tilemaps do not implement ITilemap interface? 
2. How can I access all the methods that are available only to concrete Tilemap classes, when I am overriding the virtual methods from Tile class and there in method signature it is mandatory to use the ITilemap interface?
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                