文档

Unity Engine


User Manual

Script Reference

Unity Engine


cachedEntityId

The cached EntityId of the TileBase.
阅读时间1 分钟最后更新于 1 个月前

Definition

public EntityId cachedEntityId { get; }

Examples

using UnityEngine;using UnityEngine.Tilemaps;public static class TilemapExample{ public static void TileCachedEntityIdExample(TileBase tile) { Debug.Log($"The cached EntityId for the Tile is equal to GetEntityId: ({(tile.cachedEntityId == tile.GetEntityId()).ToString()})"); }}