DoubleConstrainedValue

사용되지 않는 항목 표시

*이 콘텐츠는 AI(베타)를 사용해 번역되었으며, 오류가 있을 수 있습니다. 이 페이지를 영어로 보려면 여기를 클릭하세요.

사용되지 않음

MinValue 보다 작거나 MaxValue 보다 많을 수 없는 숫자 값을 생성하는 데 사용되는 인스턴스.

요약

속성

속성

ConstrainedValue

숨김
복제되지 않음
병렬 읽기

MaxValue

병렬 읽기

DoubleConstrainedValue.Value 속성이 될 수 있는 가장 높은 번호.

MinValue

병렬 읽기

DoubleConstrainedValue.Value 속성이 될 수 있는 가장 낮은 번호.

Value

복제되지 않음
병렬 읽기

DoubleConstrainedValue.MinValueDoubleConstrainedValue.MaxValue 사이의 숫자 값을 유지하는 데 사용됩니다.

메서드

이벤트

Changed

변경될 때마다 DoubleConstrainedValue.ValueDoubleConstrainedValue 가 발사됩니다.

매개 변수

value: number

코드 샘플

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