Components (Unity Integration)¶
Optional Unity MonoBehaviours that provide scene-level behaviour helpers for the Inventory system.
Purpose¶
Provide optional helpers that apply configuration and automate scene-level behaviour.
What Lives Here¶
InventorySizeSync→ applies container size policy at runtime
Important Notes¶
- These components are optional
- They do not replace core service or container logic
- They operate through the public service API
Usage Guidance¶
InventorySizeSync¶
Applies container sizing rules when the scene initializes.
- resolves the inventory service
- reads configured size policy
- applies sizing through service APIs
Integration¶
Add it from Add Component ▸ RevFramework ▸ Inventory ▸ Inventory Size Sync, or drop it on any object in the scene.
| Field | Meaning |
|---|---|
| Inv Svc | The service to use. Leave empty to resolve one from this hierarchy. |
| Owner | The object whose container is resized. Required. |
| Container | Container name. Defaults to Backpack. |
Applied once, in Start, at execution order −350 — after the service has built its containers and before ordinary gameplay scripts read them. Changing the policy afterwards does not re-apply it.
Behaviour¶
- may safely handle missing service or owner
- uses service APIs for consistency
- never truncates — a container already holding more than the policy allows keeps its contents
- does nothing when the policy names no size for that container
Not for Production Use¶
Optional convenience components, not gameplay systems
This folder does not:
- Define container logic
- Enforce authority rules directly
- Implement gameplay systems
Related Documentation¶
- ../
- ../../Data/README.md