1using Microsoft.MixedReality.Toolkit.UI;
59 m_Title.text =
"Pattern reset to default speed ";
TextMeshPro m_PreferredSpeedLabel
TextMeshPro m_SDPeriodLabel
int m_SampleSize
Defines how many samples we want.
TextMeshPro m_MeanPeriodLabel
We get the value from these text labels.
List< float > m_NoiseValueList
This list stores the calculated colored noise values.
bool m_NoiseAppliedFlag
This flag will indicate we applied or cancel the noise to animations.
TextMeshPro m_SampleSizeLabel
double ExtractDecimalFromUI(string textFromUI)
Get the number part from the UI textfields.
float m_PreferredWalkingSpeed
Hold the user's preferred walking speed.
void SetReadyMessage(bool flag, string lbl)
Indicate noise is successgully applied or not.
GameObject m_DistributionButton
const float m_DefaultISOWalkSpeed
Default ISO preferred walking speed.
Apply a constant speed for the whole walk cycle.
override void CalculateNoise()
Calculate the ISO noise.
override void Awake()
This UI only has one field and there is no need for a Distribution Button. Therefore,...
override void CanclePattern()
Cancel the current noise pattern and reset it with default speed. Mapped to NoiseDataPanel CancelPatt...
override void ApplyPattern()
Calculate the noise according to the user input. Mapped to NoiseDataPanel ApplyPattern button.
override void CalculateBaseNoise()
We don't need this method for this class. This is just a dummy implementation.
override void SetUITextVisibility()
Change the visibility of the text fields according to the noise patterns.