/// <inheritdoc /> public override void Initialize() { base.Initialize(); if (!Application.isPlaying) { return; } if (!handTrackingHandle.IsValid) { if (!MlHandTracking.MLHandTrackingCreate(ref handTrackingHandle).IsOk) { Debug.LogError($"Failed to start {nameof(MlHandTracking)}!"); return; } configuration.keypose_enable_finger = false; configuration.keypose_enable_fist = false; configuration.keypose_enable_pinch = false; configuration.keypose_enable_thumb = false; configuration.keypose_enable_l = false; configuration.keypose_enable_open_hand = false; configuration.keypose_enable_ok = false; configuration.keypose_enable_c = false; configuration.keypose_enable_no_pose = true; configuration.keypose_enable_no_hand = true; configuration.handtracking_pipeline_enabled = true; configuration.key_points_filter_level = keyPointFilterLevel; configuration.pose_filter_level = poseFilterLevel; if (!MlHandTracking.MLHandTrackingSetConfiguration(handTrackingHandle, ref configuration).IsOk) { Debug.LogError($"Failed to set {nameof(MlHandTracking.MLHandTrackingConfiguration)}!"); } } }