MyComponent.cs

A small game component class for s&box that defines a single string property and an empty update hook. It inherits Component and exposes StringProperty as a configurable Property.


public sealed class MyComponent : Component
{
	[Property] public string StringProperty { get; set; }

	protected override void OnUpdate()
	{
	}
}