<!-- Page: https://rustic-game-engine.pages.dev/docs/api/properties -->

# Public properties

Read and update declared script properties.

[Feature status and language/platform compatibility](https://rustic-game-engine.pages.dev/markdown/reference/compatibility.md)

Choose an API to see its signature, parameters, examples and behavior.

## APIs

- [rustic.get_property()](https://rustic-game-engine.pages.dev/markdown/api/properties/get-property.md)
- [rustic.set_property()](https://rustic-game-engine.pages.dev/markdown/api/properties/set-property.md)

## Module guide

## When to call it

Use properties for designer-configurable values such as speed, health, and damage. Read at setup or when needed; write only when gameplay changes the value.

## Variables

| Variable | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | Yes | Exact declared property name. |
| `value` | EngineValue | Yes | Value matching the property's existing type. |

## Return and timing

Get returns the stored value. Set cannot create a missing property. Its write timing follows the [runtime execution rules](https://rustic-game-engine.pages.dev/markdown/guides/scripting.md#when-mutations-take-effect).

## Constraints and behavior

- Unknown names and type changes are rejected. Boundary values are booleans, integers, finite numbers, strings, vectors, and optional entity IDs.
- Every gameplay language calls the engine-owned API. Rustic supplies SDKs and dispatches callbacks; scripts do not parse requests or serialize responses. See the language guide for complete setup and callback registration.
