IntConstrainedValue

사용되지 않는 항목 표시

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

사용되지 않음

IntConstrainedValue는 MinValue보다 작거나 MaxValue보다 더 큰 값을 저장하는 데 사용됩니다.

요약

속성

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

    Class.IntConstrainedValue.MinValue 및 IntConstrainedValue.MinValue 사이의 값을 IntConstrainedValue.MaxValue 및 1>Class.IntConstrainedValue.MaxValue1> 사이의 값으로 변경합니다. 4>Class.IntConstrainedValue.Value4> 를 대체하지만 기능적입니다.

  • 병렬 읽기
    사용되지 않음

    Class.IntConstrainedValue.Value 속성이 가장 높은 값을 가질 수 있습니다.

  • 병렬 읽기
    사용되지 않음

    Class.IntConstrainedValue.Value 속성이 가장 작은 값일 수 있습니다.

  • 복제되지 않음
    병렬 읽기
    사용되지 않음

    Class.IntConstrainedValue.MinValue 및 Class.IntConstrainedValue.MaxValue 사이의 정수 값을 보관합니다.

이벤트

속성

ConstrainedValue

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

Class.IntConstrainedValue.MinValue 및 IntConstrainedValue.MinValue 사이의 값을 IntConstrainedValue.MaxValue 및 1>Class.IntConstrainedValue.MaxValue1> 사이의 값으로 변경합니다. 4>Class.IntConstrainedValue.Value4> 를 대체하지만 기능적입니다.

MaxValue

병렬 읽기

Class.IntConstrainedValue.Value 속성이 가장 높은 값을 가질 수 있습니다.

MinValue

병렬 읽기

Class.IntConstrainedValue.Value 속성이 가장 작은 값일 수 있습니다.

Value

복제되지 않음
병렬 읽기

Class.IntConstrainedValue.MinValue 및 Class.IntConstrainedValue.MaxValue 사이의 정수 값을 보관합니다.

메서드

이벤트

Changed

Value of the IntConstrainedValue가 변경될 때마다 발생합니다.

매개 변수

value: number

코드 샘플

The below example, assuming all referenced objects existed, would print the IntConstrainedValue's new value each time it's changed. In the example below it would print 2, assuming it's within IntConstrainedValue's MinValue and MaxValue range. Otherwise there will be no change.

IntConstrainedValue.Changed

local function valueChanged(newValue)
print(newValue)
end
workspace.IntConstrainedValue.Changed:Connect(valueChanged)
workspace.IntConstrainedValue.Value = 2