DoubleConstrainedValue
*เนื้อหานี้แปลโดยใช้ AI (เวอร์ชัน Beta) และอาจมีข้อผิดพลาด หากต้องการดูหน้านี้เป็นภาษาอังกฤษ ให้คลิกที่นี่
ตัวอินสแตนซ์ที่ใช้เพื่อสร้างค่าตัวเลขที่ไม่สามารถน้อยกว่า MinValue หรือมากกว่า MaxValue
สรุป
คุณสมบัติ
ตัวเลขสูงสุดที่สมบัติของ DoubleConstrainedValue.Value สามารถ
ตัวเลขที่ต่ำสุดที่สามารถเป็นได้ของ DoubleConstrainedValue.Value โปรไฟล์
ใช้เพื่อรองรับค่าตัวเลขระหว่าง DoubleConstrainedValue.MinValue และ DoubleConstrainedValue.MaxValue
อีเวนต์
ไฟร์ทุกครั้งเมื่อ DoubleConstrainedValue.Value ของ DoubleConstrainedValue เปลี่ยนแปลง
คุณสมบัติ
Value
ใช้เพื่อรองรับค่าตัวเลขระหว่าง DoubleConstrainedValue.MinValue และ DoubleConstrainedValue.MaxValue
วิธีการ
อีเวนต์
Changed
ไฟร์ทุกครั้งเมื่อ DoubleConstrainedValue.Value ของ 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.
workspace.DoubleConstrainedValue.Changed:Connect(function(newValue)
print(newValue)
end)
workspace.DoubleConstrainedValue.Value = 2