요약
메서드
InsertStyleRule(rule: StyleRule,priority: number?):() |
SetStyleRules(rules: Instances):() |
상속된 멤버
상속자
API 참조
메서드
InsertStyleRule
SetStyleRules
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 })이벤트