Space

Placeholder spacer for WindowPanel layouts.

Space

Space(height=1)

Located in ursina/prefabs/window_panel.py

Overview

Provides vertical spacing between elements in a WindowPanel.

Key Properties

  • .height — number of units tall

Example

from ursina import *
app = Ursina()

wp = WindowPanel(
    title='Custom Window',
    content=(Text('Above'), Space(height=2), Text('Below')),
    popup=True
)
wp.layout()
app.run()