DoubleConstrainedValue
사용되지 않는 항목 표시
*이 콘텐츠는 AI(베타)를 사용해 번역되었으며, 오류가 있을 수 있습니다. 이 페이지를 영어로 보려면 여기를 클릭하세요.
MinValue 또는 MaxValue보다 작거나 더 크지 않은 숫자 값을 만드는 인스턴스입니다.
요약
속성
Class.DoubleConstrainedValue.Value 속성이 가장 높은 값을 가질 수 있습니다.
Class.DoubleConstrainedValue.Value 속성이 가장 작은 값일 수 있습니다.
Class.DoubleConstrainedValue.MinValue 및 DoubleConstrainedValue.MaxValue 사이의 숫자 값을 보관합니다.
이벤트
Class.DoubleConstrainedValue의 DoubleConstrainedValue가 변경될 때마다 발생합니다.
속성
메서드
이벤트
Changed
Class.DoubleConstrainedValue의 DoubleConstrainedValue가 변경될 때마다 발생합니다.
매개 변수
코드 샘플
The below example, assuming all referenced objects existed, would print the DoubleConstrainedValue's new value each time it's changed. In the example below it would print 2, assuming it's within DoubleConstrainedValue's MinValue and MaxValue range. Otherwise there will be no change.
DoubleConstrainedValue.Changed
workspace.DoubleConstrainedValue.Changed:Connect(function(newValue)
print(newValue)
end)
workspace.DoubleConstrainedValue.Value = 2