StyleQuery¶
Not yet Class
Instance used to set conditions such as "MaxSize" and "PreferredInput" for
a StyleRule.
Not implemented yet
This class exists in the current Roblox API but is not implemented in Nova yet. Scripts that reference it will fail at runtime.
0 Nova members · 11 modern Roblox members not implemented yet
Description¶
StyleQuery is an instance used to set conditions like "MaxSize" and
"PreferredInput" for a StyleRule. If the conditions are true, the
rule's @ selector is enabled. This is helpful to author styling with dynamic
container sizes and cross-platform UI.
Inheritance¶
Object → Instance → StyleQuery
Properties¶
| Member | Signature | Summary |
|---|---|---|
AspectRatioRange |
AspectRatioRange: NumberRange |
— |
ConditionsSerialize |
ConditionsSerialize: BinaryString |
— |
IsActive |
IsActive: bool |
A boolean that determines whether a StyleRule.Selector of @ will match the StyleQuery name. |
MaxSize |
MaxSize: Vector2 |
— |
MinSize |
MinSize: Vector2 |
— |
PreferredInput |
PreferredInput: PreferredInput |
— |
PreferredTextSize |
PreferredTextSize: PreferredTextSize |
— |
ReducedMotionEnabled |
ReducedMotionEnabled: bool |
— |
ViewportDisplaySize |
ViewportDisplaySize: DisplaySize |
— |
Methods¶
| Member | Signature | Summary |
|---|---|---|
GetCondition |
StyleQuery:GetCondition(name: string): Variant |
Returns the value of a specific condition in the StyleQuery. |
GetConditions |
StyleQuery:GetConditions(): Dictionary |
Returns a dictionary of key-value pairs describing the conditoins set on the StyleQuery. |
SetCondition |
StyleQuery:SetCondition(name: string, value: Variant): null |
— |
SetConditions |
StyleQuery:SetConditions(conditions: Dictionary): null |
Lets you declare and set multiple conditions of the StyleQuery at once. |
Roblox reference: StyleQuery
Generated from Nova's API dump and Roblox creator-docs. Nova-only members come from the engine's reflection metadata.