public override void OnInspectorGUI() { serializedObject.Update(); EditorGUILayout.LabelField("Maximum Head Angles", EditorStyles.boldLabel); EditorGUILayout.HelpBox("Beyond these angles, expressions will not be calculated because the landmark data is less reliable", MessageType.Info); EditorGUILayout.PropertyField(m_MaxHeadXProperty); EditorGUILayout.PropertyField(m_MaxHeadYProperty); EditorGUILayout.PropertyField(m_MaxHeadZProperty); EditorGUILayout.Separator(); using (var check = new EditorGUI.ChangeCheckScope()) { var cooldown = EditorGUILayout.FloatField("Event Cooldown In Seconds", m_CooldownProperty.floatValue); if (check.changed) { m_CooldownProperty.floatValue = cooldown; } } using (var check = new EditorGUI.ChangeCheckScope()) { var smoothing = EditorGUILayout.FloatField("Expression Change Smoothing Filter", m_SmoothingFilter.floatValue); if (check.changed) { m_SmoothingFilter.floatValue = smoothing; } } EditorGUILayout.Separator(); ARCoreFaceEditorUtils.ExpressionThresholdFields(m_ThresholdsProperty); EditorGUILayout.Separator(); ARCoreFaceEditorUtils.ExpressionDistanceRangeFields(m_ExpressionDistanceReverseStatesProperty, m_ExpressionDistanceMinimumsProperty, m_ExpressionDistanceMaximumsProperty); serializedObject.ApplyModifiedProperties(); }
public override void OnInspectorGUI() { ARCoreFaceEditorUtils.ARCoreLandmarkIndicesFields(m_LandmarkTriangleIndices.landmarkTriangleIndices); }