BrickColorValue
사용되지 않는 항목 표시
An instance which is used to store a BrickColor value.
요약
이벤트
Fired whenever the BrickColorValue.Value of the BrickColorValue is changed.
속성
메서드
이벤트
Changed
Fired whenever the BrickColorValue.Value of the BrickColorValue is changed. It will run with the new value being stored in the argument object, instead of a string representing the property being changed.
This event, like other changed events, can be used to track when an BrickColorValue changes and to track the different values that it may change to.
Equivalent changed events exist for similar objects, such as NumberValue and StringValue, depending on what object type best suits the need.
매개 변수
The new value after the change.
코드 샘플
BrickColorValue.Changed
local brickColorValue = script.Parent.BrickColorValue
brickColorValue.Changed:Connect(print)
brickColorValue.Value = BrickColor.new("Bright red")