MagiCats
Wiki home
Units / Unit

Unit

A reference to the player, self, or a specific object in the level.

Current editor blockBlock ID 64Unit
Unit code block in the MagiCats editor

What it does

Stores a unit ID so actions and conditions know who to use.

Inputs

  • The selected unit.

Try it

Follow Player uses a Unit block set to Player.

Tips

  • Self means the object that owns the code.

Sources

Code checked: MagiCats_UnityProject/Assets/Scripts/Blocks/UnitBlockInfo.cs, MagiCats_UnityProject/Assets/Scripts/Blocks/UnitCodeManager.cs