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 从公开仓库中收录这些内容。

举报或申请下架