BrickColor 값을 저장하는 데 사용되는 인스턴스.
요약
이벤트
BrickColorValue의 BrickColorValue.Value가 변경될 때마다 발생합니다.
속성
메서드
이벤트
Changed
변경될 때마다 BrickColorValue.Value 의 BrickColorValue 가 발사됩니다.속성이 변경되는 문자열 대신 새 값이 인수 개체에 저장되어 실행됩니다. It will run with the new value being stored in the argument object, instead of a string representing the property being changed.
다른 변경된 이벤트와 마찬가지로 이 이벤트는 벽돌 색상 값이 변경될 때와 변경될 수 있는 다양한 값을 추적하는 데 사용할 수 있습니다.
요구 사항에 가장 적합한 개체 유형에 따라 NumberValue 및 StringValue와 같은 유사한 개체에 대해 동등한 변경 이벤트가 존재합니다.
매개 변수
변경 후의 새 값.
코드 샘플
This example prints the BrickColorValue's new value each time it changes.
BrickColorValue.Changed
local brickColorValue = script.Parent.BrickColorValue
brickColorValue.Changed:Connect(print)
brickColorValue.Value = BrickColor.new("Bright red")