File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Assets/MRTK/Tests/PlayModeTests Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2088,22 +2088,23 @@ public IEnumerator PerAxisHandlePrefabTest([ValueSource("perAxisHandleTestData")
2088
2088
/// Test for verifying automatically generated handle colliders are properly aligned to the handle visual
2089
2089
/// </summary>
2090
2090
[ UnityTest ]
2091
- public IEnumerator PerAxisHandleAlignmentTest ( [ ValueSource ( "perAxisHandleTestData " ) ] PerAxisHandleTestData testData )
2091
+ public IEnumerator HandleAlignmentTest ( [ ValueSource ( "handleTestData " ) ] HandleTestData testData )
2092
2092
{
2093
2093
var boundsControl = InstantiateSceneAndDefaultBoundsControl ( ) ;
2094
2094
yield return VerifyInitialBoundsCorrect ( boundsControl ) ;
2095
2095
2096
2096
// Create an oblong-shaped handle
2097
2097
// (cylinder primitive will do, as it is longer than it is wide!)
2098
+ // Testing oblong handles will stress the alignment/rotation behavior
2098
2099
var cylinder = GameObject . CreatePrimitive ( PrimitiveType . Cylinder ) ;
2099
2100
GameObject . Destroy ( cylinder . GetComponent < CapsuleCollider > ( ) ) ;
2100
2101
2101
2102
// Wait for Destroy() to do its thing
2102
2103
yield return null ;
2103
2104
2104
- // Set the rotation handles to be cylinders!
2105
+ // Set the handles to be cylinders!
2105
2106
System . Reflection . PropertyInfo propName = boundsControl . GetType ( ) . GetProperty ( testData . configPropertyName ) ;
2106
- PerAxisHandlesConfiguration config = ( PerAxisHandlesConfiguration ) propName . GetValue ( boundsControl ) ;
2107
+ HandlesBaseConfiguration config = ( HandlesBaseConfiguration ) propName . GetValue ( boundsControl ) ;
2107
2108
config . HandlePrefab = cylinder ;
2108
2109
2109
2110
// Reflection voodoo to retrieve the ColliderPadding value regardless of which
You can’t perform that action at this time.
0 commit comments