Learn
Motor Sınıfı
StyleBase
Oluşturulamaz

*Bu içerik, yapay zekâ (beta) kullanılarak çevrildi ve hatalar içerebilir. Sayfayı İngilizce görüntülemek için buraya tıkla.


Özet
Yöntemler
InsertStyleRule(rule: StyleRule,priority: number?):()
SetStyleRules(rules: Instances):()
Devralınan Üyeler

API Referansı
Yöntemler
GetStyleRules
Capabilities: UI
StyleBase:GetStyleRules():{StyleRule}
Dönüşler

InsertStyleRule
Capabilities: UI
StyleBase:InsertStyleRule(
rule:StyleRule, priority:number?
):()
Parametreler
priority:number?
Dönüşler
()

SetStyleRules
Capabilities: UI
StyleBase:SetStyleRules(rules:Instances):()
Parametreler
rules:Instances
Dönüşler
()
Kod Örnekleri
Stil Kurallarını Ayarla
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local coreSheet = Instance.new("StyleSheet")
coreSheet.Name = "CoreSheet"
coreSheet.Parent = ReplicatedStorage
local styleRuleA = Instance.new("StyleRule")
styleRuleA.Selector = "Frame"
styleRuleA:SetProperty("BackgroundColor3", Color3.new(1, 0, 0))
local styleRuleB = Instance.new("StyleRule")
styleRuleB.Selector = "Frame"
styleRuleB:SetProperty("BackgroundColor3", Color3.new(0, 1, 0))
coreSheet:SetStyleRules({ styleRuleA, styleRuleB })

Olaylar
StyleRulesChanged
Capabilities: UI
StyleBase.StyleRulesChanged():RBXScriptSignal

©2026 Roblox Corporation. Roblox, the Roblox logo and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.