ABILITY 03
Ghost
Change sprite transparency and switch the ability object to a NoCollision layer.
Activation
PhantomButtonExample use
Explore the setup guide below to configure this ability.
Ability documentationCHARACTER ABILITY
SETUP GUIDE
Set up this ability
Component dependencies
| Component | Where to add or assign it | Purpose / setup |
|---|---|---|
| SpriteRenderer | Character or child | Required for the transparency change. Also create the NoCollision layer and configure collision settings for your game. |
- The website calls this ability Ghost; its component class is CharacterPhantom. Use PhantomButton for input binding.
- Create the NoCollision layer in Tags and Layers. Configure the relevant collision matrix and CorgiController collision masks for the behavior your game needs.
- Use a character with a child SpriteRenderer and explicitly select PhantomButton if needed.
- Set PhantomAlpha (default 0.5), then activate the ability. It changes the ability GameObject layer and sprite alpha; stopping restores them.
Inspector reference
These are C# field declaration defaults. Existing prefab and scene values can override them. Shared fields are documented under Ability Configuration.
| Field | Type | Declared default |
|---|---|---|
PhantomAlpha | float | 0.5f |
Usage notes
- Configure collision settings for NoCollision; the ability changes the layer of its own GameObject.
- Use PhantomButton for the Ghost ability.
