5
5
using Microsoft . MixedReality . Toolkit . Input ;
6
6
using Microsoft . MixedReality . Toolkit . UI . BoundsControlTypes ;
7
7
using Microsoft . MixedReality . Toolkit . Utilities ;
8
+ using System ;
8
9
using System . Collections . Generic ;
9
10
using UnityEngine ;
10
11
using UnityEngine . Events ;
@@ -495,8 +496,11 @@ public ElasticsManager ElasticsManager
495
496
private BoxDisplay boxDisplay ;
496
497
private ProximityEffect proximityEffect ;
497
498
498
- // Whether we should be displaying just the wireframe (if enabled) or the handles too
499
+ /// <summary>
500
+ /// Whether we should be displaying just the wireframe (if enabled) or the handles too
501
+ /// </summary>
499
502
public bool WireframeOnly { get => wireframeOnly ; }
503
+
500
504
private bool wireframeOnly = false ;
501
505
502
506
// Pointer that is being used to manipulate the bounds control
@@ -562,6 +566,11 @@ public ElasticsManager ElasticsManager
562
566
private static readonly List < Vector3 > TotalBoundsCorners = new List < Vector3 > ( ) ;
563
567
564
568
private Vector3 [ ] boundsCorners = new Vector3 [ 8 ] ;
569
+
570
+ /// <summary>
571
+ /// This property is unused and will be removed in a future release. It has not, and does not, return any information.
572
+ /// </summary>
573
+ [ Obsolete ( "The BoundsCorners property is unused and will be removed in a future release. It has not, and does not, return any information." ) ]
565
574
public Vector3 [ ] BoundsCorners { get ; private set ; }
566
575
567
576
// Current actual flattening axis, derived from FlattenAuto, if set
@@ -590,6 +599,14 @@ private FlattenModeType ActualFlattenAxis {
590
599
591
600
// TODO Review this, it feels like we should be using Behaviour.enabled instead.
592
601
private bool active = false ;
602
+
603
+ /// <summary>
604
+ /// Whether the bounds control is currently active and will respond to input.
605
+ /// </summary>
606
+ /// <remarks>
607
+ /// Setting this property will also set the entire gameObject's active state, as well as
608
+ /// resetting the visuals and proximity scale effects.
609
+ /// </remarks>
593
610
public bool Active
594
611
{
595
612
get
@@ -636,7 +653,7 @@ private bool IsInitialized
636
653
#region Public Methods
637
654
638
655
/// <summary>
639
- /// Allows to manually enable wire (edge) highlighting (edges) of the bounds control.
656
+ /// Allows the manual enabling of the wireframe display of the bounds control.
640
657
/// This is useful if connected to the Manipulation events of a
641
658
/// <see cref="Microsoft.MixedReality.Toolkit.UI.ObjectManipulator"/>
642
659
/// when used in conjunction with this MonoBehavior.
@@ -646,6 +663,9 @@ public void HighlightWires()
646
663
SetHighlighted ( null ) ;
647
664
}
648
665
666
+ /// <summary>
667
+ /// Allows the manual disabling of the wireframe display.
668
+ /// </summary>
649
669
public void UnhighlightWires ( )
650
670
{
651
671
ResetVisuals ( ) ;
@@ -1292,6 +1312,7 @@ private void TransformTarget(HandleType transformType)
1292
1312
1293
1313
#region Used Event Handlers
1294
1314
1315
+ /// <inheritdoc />
1295
1316
void IMixedRealityFocusChangedHandler . OnFocusChanged ( FocusEventData eventData )
1296
1317
{
1297
1318
if ( eventData . NewFocusedObject == null )
@@ -1318,6 +1339,7 @@ void IMixedRealityFocusChangedHandler.OnFocusChanged(FocusEventData eventData)
1318
1339
}
1319
1340
}
1320
1341
1342
+ /// <inheritdoc />
1321
1343
void IMixedRealityFocusHandler . OnFocusExit ( FocusEventData eventData )
1322
1344
{
1323
1345
if ( currentPointer != null && eventData . Pointer == currentPointer )
@@ -1326,6 +1348,7 @@ void IMixedRealityFocusHandler.OnFocusExit(FocusEventData eventData)
1326
1348
}
1327
1349
}
1328
1350
1351
+ /// <inheritdoc />
1329
1352
void IMixedRealityFocusHandler . OnFocusEnter ( FocusEventData eventData ) { }
1330
1353
1331
1354
private void OnPointerUp ( MixedRealityPointerEventData eventData )
@@ -1421,6 +1444,7 @@ private void OnPointerDown(MixedRealityPointerEventData eventData)
1421
1444
1422
1445
private void OnPointerDragged ( MixedRealityPointerEventData eventData ) { }
1423
1446
1447
+ /// <inheritdoc />
1424
1448
public void OnSourceDetected ( SourceStateEventData eventData )
1425
1449
{
1426
1450
if ( eventData . Controller != null )
@@ -1432,6 +1456,7 @@ public void OnSourceDetected(SourceStateEventData eventData)
1432
1456
}
1433
1457
}
1434
1458
1459
+ /// <inheritdoc />
1435
1460
public void OnSourceLost ( SourceStateEventData eventData )
1436
1461
{
1437
1462
sourcesDetected . Remove ( eventData . Controller ) ;
@@ -1446,6 +1471,7 @@ public void OnSourceLost(SourceStateEventData eventData)
1446
1471
1447
1472
#region Unused Event Handlers
1448
1473
1474
+ /// <inheritdoc />
1449
1475
void IMixedRealityFocusChangedHandler . OnBeforeFocusChange ( FocusEventData eventData ) { }
1450
1476
1451
1477
#endregion Unused Event Handlers
0 commit comments