@@ -405,15 +405,17 @@ private void SaveVector3Pref(string prefStr, Vector3 value)
405405 public ( Vector3 apmldv , Vector3 angles ,
406406 int type , int manipulatorId ,
407407 string coordinateSpaceName , string coordinateTransformName ,
408- Vector4 zeroCoordinateOffset , float brainSurfaceOffset , bool dropToSurfaceWithDepth ) [ ] LoadSavedProbes ( )
408+ Vector4 zeroCoordinateOffset , float brainSurfaceOffset , bool dropToSurfaceWithDepth ,
409+ string uuid ) [ ] LoadSavedProbeData ( )
409410 {
410411 int probeCount = UnityEngine . PlayerPrefs . GetInt ( "probecount" , 0 ) ;
411412
412413 var savedProbes =
413414 new ( Vector3 apmldv , Vector3 angles ,
414415 int type , int manipulatorId ,
415416 string coordinateSpaceName , string coordinateTransformName ,
416- Vector4 zeroCoordinateOffset , float brainSurfaceOffset , bool dropToSurfaceWithDepth ) [ probeCount ] ;
417+ Vector4 zeroCoordinateOffset , float brainSurfaceOffset , bool dropToSurfaceWithDepth ,
418+ string uuid ) [ probeCount ] ;
417419
418420 for ( int i = 0 ; i < probeCount ; i ++ )
419421 {
@@ -433,11 +435,13 @@ private void SaveVector3Pref(string prefStr, Vector3 value)
433435 var d = UnityEngine . PlayerPrefs . GetFloat ( "d" + i ) ;
434436 var brainSurfaceOffset = UnityEngine . PlayerPrefs . GetFloat ( "brain_surface_offset" + i ) ;
435437 var dropToSurfaceWithDepth = UnityEngine . PlayerPrefs . GetInt ( "drop_to_surface_with_depth" + i ) == 1 ;
438+ string uuid = UnityEngine . PlayerPrefs . GetString ( "uuid" + i ) ;
436439
437440 savedProbes [ i ] = ( new Vector3 ( ap , ml , dv ) , new Vector3 ( phi , theta , spin ) ,
438441 type , manipulatorId ,
439442 coordSpaceName , coordTransName ,
440- new Vector4 ( x , y , z , d ) , brainSurfaceOffset , dropToSurfaceWithDepth ) ;
443+ new Vector4 ( x , y , z , d ) , brainSurfaceOffset , dropToSurfaceWithDepth ,
444+ uuid ) ;
441445 }
442446
443447 return savedProbes ;
@@ -451,7 +455,8 @@ public void SaveCurrentProbeData(
451455 ( Vector3 apmldv , Vector3 angles ,
452456 int type , int manipulatorId ,
453457 string coordinateSpace , string coordinateTransform ,
454- Vector4 zeroCoordinateOffset , float brainSurfaceOffset , bool dropToSurfaceWithDepth ) [ ] allProbeData )
458+ Vector4 zeroCoordinateOffset , float brainSurfaceOffset , bool dropToSurfaceWithDepth ,
459+ string uuid ) [ ] allProbeData )
455460 {
456461 for ( int i = 0 ; i < allProbeData . Length ; i ++ )
457462 {
@@ -474,6 +479,7 @@ public void SaveCurrentProbeData(
474479 UnityEngine . PlayerPrefs . SetFloat ( "brain_surface_offset" + i , allProbeData [ i ] . brainSurfaceOffset ) ;
475480 UnityEngine . PlayerPrefs . SetInt ( "drop_to_surface_with_depth" + i ,
476481 allProbeData [ i ] . dropToSurfaceWithDepth ? 1 : 0 ) ;
482+ UnityEngine . PlayerPrefs . SetString ( "uuid" + i , allProbeData [ i ] . uuid ) ;
477483 }
478484 UnityEngine . PlayerPrefs . SetInt ( "probecount" , allProbeData . Length ) ;
479485 UnityEngine . PlayerPrefs . SetString ( "timestamp" ,
0 commit comments