Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

Separator

繼承: Control < CanvasItem < Node < Object

被繼承: HSeparator, VSeparator

分隔線的抽象基底類別。

說明

分隔線的抽象基底類別,用於分隔其他控制項。Separator 只提供視覺上的分隔,通常用 StyleBoxLine 繪製。

主題屬性

int

separation

0

StyleBox

separator


主題屬性說明

int separation = 0 🔗

分隔器覆蓋區域的高度。效果上和最小高度一致。


StyleBox separator 🔗

分隔線的樣式。與 StyleBoxLine 一起使用效果最好(記得要啟用 StyleBoxLine.vertical)。