Skip to content

Script API reference

Types from the Kolpa.Engine assembly, the API your C# scripts compile against. Signatures are generated from the built assembly, so they match the code that ships.

Scripts derive from MonoBehaviour in the Kolpa.Engine namespace:

using Kolpa.Engine;
public class Rotator : MonoBehaviour
{
public float Speed = 45f;
public override void OnUpdate(float deltaTime)
{
transform.Rotate(0f, Speed * deltaTime, 0f);
}
}

See C# scripting for the lifecycle and build loop.