Has anyone else run into issues trying to set an initial amount on progressive mode in 2.0?
Over dozens of attempts it worked 2 times correctly. Same code. It seems to be ignoring the values I’m setting… so it’s reading it like it’s nil and only gives me 50 to 100% on the crown dial. If I try to dial the crown below 50% it just overrides and returns to 50%. In the definition it says this will happen if there are no values set.
This is what I’m setting in UnityVisionOSSettings:
.immersionStyle(selection: .constant(.progressive(0.1...1.0, initialAmount: 0.1)), in: .progressive(0.1...1.0, initialAmount: 0.1))
This is the definition:
/// - Parameters:
/// - immersionRange: The range of immersion used for this instance of
/// the style. The lower bound and upper bound value of the range
/// represent the minimum and maximum amount of the spherical field of
/// view of the user that can be covered by the portal effect of the
/// style. The lower bound value must be equal to or greater than `0.0`
/// and smaller than the upper bound. The upper bound value must be
/// greater than the lower bound and smaller than or equal to `1.0`.
/// - initialAmount: The initial amount of immersion used for this
/// instance of the style. If `nil`, a system default will be used.
/// The value must be within the range defined by this style.
@available(visionOS 2.0, *)