Class AutoEntityIdTile
Tile using AutoTiling mask and rules
Inherited Members
Namespace: Unity.Tilemaps.Experimental
Assembly: Unity.2D.Tilemap.Experimental.dll
Syntax
[HelpURL("https://docs.unity3d.com/Packages/com.unity.2d.tilemap.extras@latest/index.html?subfolder=/manual/AutoEntityIdTile.html")]
[BurstCompile]
public class AutoEntityIdTile : EntityIdTileBase
Fields
m_DefaultColliderType
The Default Collider Type set when creating a new Rule.
Declaration
[SerializeField]
public Tile.ColliderType m_DefaultColliderType
Field Value
| Type | Description |
|---|---|
| Tile.ColliderType |
m_DefaultGameObject
The Default GameObject set when creating a new Rule.
Declaration
[SerializeField]
public GameObject m_DefaultGameObject
Field Value
| Type | Description |
|---|---|
| GameObject |
m_DefaultSprite
The Default Sprite set when creating a new Rule.
Declaration
[SerializeField]
public Sprite m_DefaultSprite
Field Value
| Type | Description |
|---|---|
| Sprite |
m_MaskType
Mask Type for the AutoTile
Declaration
[SerializeField]
public AutoEntityIdTile.AutoTileMaskType m_MaskType
Field Value
| Type | Description |
|---|---|
| AutoEntityIdTile.AutoTileMaskType |
m_TextureList
List of Texture2Ds used by the AutoTile
Declaration
[SerializeField]
public List<Texture2D> m_TextureList
Field Value
| Type | Description |
|---|---|
| List<Texture2D> |
m_TextureScaleList
List of Texture Scale used by the AutoTile
Declaration
[SerializeField]
public List<float> m_TextureScaleList
Field Value
| Type | Description |
|---|---|
| List<float> |
Properties
getTileAnimationDataJobDelegate
Returns null as AutoEntityIdTile has no Tile Animation Data
Declaration
protected override EntityIdTileBase.GetTileAnimationDataJobDelegate getTileAnimationDataJobDelegate { get; }
Property Value
| Type | Description |
|---|---|
| EntityIdTileBase.GetTileAnimationDataJobDelegate |
Overrides
getTileDataJobDelegate
Returns the delegate function to get Tile Data for AutoEntityIdTile for use in Unity Jobs
Declaration
protected override EntityIdTileBase.GetTileDataJobDelegate getTileDataJobDelegate { get; }
Property Value
| Type | Description |
|---|---|
| EntityIdTileBase.GetTileDataJobDelegate |
Overrides
physicsShapeCheck
Checks Physics Shape of Sprite before determining Collider Type
Declaration
public bool physicsShapeCheck { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
random
Use random Sprite for mask
Declaration
public bool random { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
refreshTileJobDelegate
Returns the delegate function to refresh tiles for AutoEntityIdTile for use in Unity Jobs
Declaration
protected override EntityIdTileBase.RefreshTileJobDelegate refreshTileJobDelegate { get; }
Property Value
| Type | Description |
|---|---|
| EntityIdTileBase.RefreshTileJobDelegate |
Overrides
structType
Returns the type of data struct used for this AutoEntityIdTile
Declaration
public override Type structType { get; }
Property Value
| Type | Description |
|---|---|
| Type |
Overrides
Methods
CopyDataStruct(void*)
Copies the data struct used for this AutoEntityIdTile to the outPtr buffer for use in Unity Jobs.
Declaration
public override void CopyDataStruct(void* outPtr)
Parameters
| Type | Name | Description |
|---|---|---|
| void* | outPtr | Data buffer to copy data struct from AutoEntityIdTile to. |
Overrides
GetTileData(Vector3Int, ITilemap, ref TileData)
Retrieves any tile rendering data from the scripted tile.
Declaration
public override void GetTileData(Vector3Int position, ITilemap itilemap, ref TileData tileData)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3Int | position | Position of the Tile on the Tilemap. |
| ITilemap | itilemap | The Tilemap the tile is present on. |
| TileData | tileData | Data to render the tile. |
Overrides
OnDisable()
Does cleanup for AutoEntityIdTile
Declaration
public override void OnDisable()
Overrides
OnEnable()
Does initialization for AutoEntityIdTile
Declaration
public override void OnEnable()
Overrides
RefreshTile(Vector3Int, ITilemap)
This method is called when the tile is refreshed.
Declaration
public override void RefreshTile(Vector3Int position, ITilemap tilemap)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3Int | position | Position of the Tile on the Tilemap. |
| ITilemap | tilemap | The Tilemap the tile is present on. |
Overrides
Validate()
Validate AutoTile Data
Declaration
public void Validate()