MCPcopy Create free account
hub / github.com/URLab-Sim/UnrealRoboticsLab / SetSliderRange

Method SetSliderRange

Source/URLab/Private/UI/MjPropertyRow.cpp:115–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115void UMjPropertyRow::SetSliderRange(FVector2D range)
116{
117 if (PropertySlider)
118 {
119 // Add a small buffer or handle 0,0 range
120 if (range.X == 0.0f && range.Y == 0.0f)
121 {
122 range = FVector2D(-1.0f, 1.0f); // Default for unconstrained
123 }
124 PropertySlider->SetMinValue(range.X);
125 PropertySlider->SetMaxValue(range.Y);
126 }
127}
128
129void UMjPropertyRow::SetValue(float NewValue)
130{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected