lumixengine_csharp icon indicating copy to clipboard operation
lumixengine_csharp copied to clipboard

C# plugin for Lumix Engine

C# plugin for Lumix Engine


Warning: the latest version is not in usable state!

build Discord Chat License Twitter

Getting started:

  1. Install mono
  2. Install this plugin
  3. Build and run Lumix Engine Studio, you can now create and use C# scripts

Videos

Sample

public class Test : Lumix.Component
{
	float yaw = 0;
	void OnInput(Lumix.InputEvent e)
	{
		if (e is Lumix.MouseAxisInputEvent)
		{
			var ev = e as Lumix.MouseAxisInputEvent;
			yaw += ev.x * 0.02f;
		}
	}

	void Update(float td)
	{
		this.entity.Rotation = Lumix.Quat.FromAngleAxis(yaw, new Lumix.Vec3(0, 1, 0));
	}
}