Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.abberia.com/llms.txt

Use this file to discover all available pages before exploring further.

Scripting enables per-instance scripts for a prototype. Use it when rendered instances need custom behavior, such as tree chopping, collision reactions, or gameplay interactions.

Settings

SettingDefaultDescription
Max Distance50Distance where scripts are active when the prototype does not have a valid Colliders component. Values below 1 are clamped to 1.
Script StackEmptyStack of custom Script nodes added to each active rendered instance. The stack is disabled in Play Mode in the inspector.
If the prototype has a valid Colliders component, scripting distance comes from Colliders > Max Distance and the Scripting > Max Distance field is hidden.

Custom scripts

Custom scripts inherit from Terrain Object Renderer Script and can implement:
  • OnEnable()
  • Update()
  • OnCollisionEnter(Collision collision)
Terrain Object Renderer rebuilds the scripting system when you create, delete, enable, or disable this component.