Space
Applies to: properties
Namespace:
namespace Lenga\Engine\Attributes;
Inserts a vertical gap above a field in the Inspector window, adding breathing room between groups of properties without a visible label. For a labeled separator, use Header instead.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
$height |
float |
8.0 |
Height of the gap in pixels. |
Example
use Lenga\Engine\Attributes\Header;
use Lenga\Engine\Attributes\Space;
use Lenga\Engine\Core\Behaviour;
class PlayerController extends Behaviour
{
public float $speed = 5.0;
public float $jumpHeight = 2.0;
// Extra gap before the next property group
#[Space(16.0)]
#[Header('Stamina')]
public float $maxStamina = 100.0;
public float $staminaRegenRate = 10.0;
}