CesiumGS / cesium-omniverse

Bringing the 3D geospatial ecosystem to Omniverse
https://cesium.com/platform/cesium-for-omniverse/
Apache License 2.0
51 stars 7 forks source link

Clamp numerical properties on USD prims to valid values #688

Open corybarr opened 5 months ago

corybarr commented 5 months ago

Unreal's editor UI offers some clamping abilities. For example, several settings are clamped to 0:

  UPROPERTY(
      EditAnywhere,
      BlueprintReadWrite,
      Category = "Cesium",
      meta = (EditCondition = "bSpecifyZoomLevels", ClampMin = 0))
  int32 MinimumLevel = 0;

The Omniverse extension could benefit from this UI-level clamping. We can currently do this via sliders, but clamping should be possible even when a slider doesn't make sense.