> For the complete documentation index, see [llms.txt](https://docs.anyrpg.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.anyrpg.org/monobehaviours/edible-object.md).

# Edible Object

## Usage

An Edible Object has no 3d model attached directly to the GameObject.  Instead it has multiple 3d models as child GameObjects.  The first object should be the model to use when the object is full. As many objects as are desired can be added after that to represent the different stages of eating or drinking until the last object, representing a fully eaten or used up model.

The first object should be active in the heirarchy by default, and all others should be non active.  The active status of each will be managed by the script as it progresses through showing them.

## Properties

| Name              | Description                                                    |
| ----------------- | -------------------------------------------------------------- |
| Interval          | The time in seconds between changing to the next object.       |
| Keep Last Visible | If true, the last object will stay visible after its interval. |

## Dependencies

* One or more child GameObjects should exist for the script to cycle through as the object is consumed.
