学ぶ
エンジンクラス
StyleBase
作成できません

*このコンテンツは、ベータ版のAI(人工知能)を使用して翻訳されており、エラーが含まれている可能性があります。このページを英語で表示するには、 こちら をクリックしてください。


概要
方法
InsertStyleRule(rule: StyleRule,priority: number?):()
SetStyleRules(rules: Instances):()
継承されたメンバー

APIリファレンス
方法
GetStyleRules
機能: UI
StyleBase:GetStyleRules():{StyleRule}
戻り値

InsertStyleRule
機能: UI
StyleBase:InsertStyleRule(
rule:StyleRule, priority:number?
):()
パラメータ
priority:number?
戻り値
()

SetStyleRules
機能: UI
StyleBase:SetStyleRules(rules:Instances):()
パラメータ
rules:Instances
戻り値
()
コードサンプル
スタイルルールを設定
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 })

イベント
StyleRulesChanged
機能: UI
StyleBase.StyleRulesChanged():RBXScriptSignal

©2026 Roblox Corporation。Roblox(ロブロックス)、RobloxロゴおよびPowering Imaginationは、米国並びにその他の国における登録商標および非登録商標です。