Tilemap Ruletile Createempty

unity-technologies/skills/skills/tilemap-ruletile-createempty

作者 unity-technologiescb1dccb8f5ad無授權條款1K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫今天更新

Creates an empty RuleTile, HexagonalRuleTile, or IsometricRuleTile asset. Use only when the user wants a blank RuleTile and provides no sprites; with sprites or terrain art, use tilemap-ruletile-createfromsegment.

AI 產生的概覽

建立不含精靈的空白 Unity RuleTile、HexagonalRuleTile 或 IsometricRuleTile 資產。

功能
引導代理建立空白 Unity RuleTile 資產,並在標準矩形、六邊形或等距 RuleTile 類型之間選擇。它定義空的 TilingRule,其 Sprite 陣列只包含一個 null 項目,並指向矩形與六邊形變體的範本資源。它產出的是空白 RuleTile 資產定義,而非任何磚塊美術資源。
適用情境
當使用者要求空白 RuleTile 且未提供任何精靈或精靈表時使用。若已提供精靈或地形美術資源,則應改用依片段建立 RuleTile 的其他技能。
執行需求
需要 Unity 套件 com.unity.2d.tilemap(>=1.0.0)與 com.unity.2d.tilemap.extras(>=4.0.0)。不附帶指令碼,僅為說明文件加兩份可供模型讀取的資源範本。

Tilemap RuleTile Create Empty

Workflow

Step 1: Verify No Sprite Inputs

WAIT - Confirm that no Sprites or Spritesheets were specified by the user. This skill is only for empty RuleTiles. If there are Sprites or Spritesheets specified by the user, use the tilemap-ruletile-createfromsegment skill instead.

Step 2: Determine RuleTile Type

Identify which RuleTile type to create based on user request:

  • RuleTile: Standard rectangular grid
  • HexagonalRuleTile: Hexagonal grid layout
  • IsometricRuleTile: Isometric grid layout

Step 3: Create Empty TilingRules

For each TilingRule, ensure the Sprite array has one null entry.

Branching Logic (RuleTile Types)

Path A: RuleTile

  • Use template from resources/ruletile.md.

Path B: HexagonalRuleTile

  • Use template from resources/hexagonalruletile.md.

Path C: IsometricRuleTile

  • Create empty rules with appropriate neighbor positions for isometric layout.

Important Notes

  • TilingRuleOutput.Neighbor.This: Use to identify RuleTiles that are the same (matching neighbors).
  • TilingRuleOutput.Neighbor.NotThis: Do NOT use unless explicitly specified by the user to ignore a Tile at a certain position.

來源與署名

來源:unity-technologies/skills位於skills/tilemap-ruletile-createempty提交cb1dccb

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架