Class PressableButtonTests
Inheritance
PressableButtonTests
Implements
IPrebuildSetup
Assembly: cs.temp.dll.dll
public class PressableButtonTests : BasePlayModeTests, IPrebuildSetup
Methods
Declaration
public IEnumerator ButtonInstantiate(string prefabFilename)
Parameters
Type |
Name |
Description |
String |
prefabFilename |
|
Returns
Type |
Description |
IEnumerator |
|
Declaration
public IEnumerator ButtonInstantiateDisableThenEnableBeforeStart(string prefabFilename)
Parameters
Type |
Name |
Description |
String |
prefabFilename |
|
Returns
Type |
Description |
IEnumerator |
|
Tests if Interactable is internally disabled, then the PhysicalPressEventRouter
should not invoke events in Interactable. Addresses issue 5833.
Declaration
public IEnumerator CheckPhysicalPressableRouterEventsOnDisableInteractable()
Returns
Type |
Description |
IEnumerator |
|
Test disabling the PressableButton GameObject and re-enabling
Declaration
public IEnumerator DisablePressableButton(string prefabFilename)
Parameters
Type |
Name |
Description |
String |
prefabFilename |
|
Returns
Type |
Description |
IEnumerator |
|
This test reproduces P0 issue 4566 which didn't trigger a button with enabled backpressprotection
if hands were moving too fast in low framerate
Declaration
public IEnumerator PressButtonFast(string prefabFilename)
Parameters
Type |
Name |
Description |
String |
prefabFilename |
|
Returns
Type |
Description |
IEnumerator |
|
Tests if button pressed event is triggered when a second button is overlapping right behind the first button
Declaration
public IEnumerator PressButtonWhenSecondButtonIsNearby(string prefabFilename)
Parameters
Type |
Name |
Description |
String |
prefabFilename |
|
Returns
Type |
Description |
IEnumerator |
|
Declaration
public IEnumerator PressButtonWithHand(string prefabFilename)
Parameters
Type |
Name |
Description |
String |
prefabFilename |
|
Returns
Type |
Description |
IEnumerator |
|
This tests the release behavior of a button
Declaration
public IEnumerator ReleaseButton(string prefabFilename)
Parameters
Type |
Name |
Description |
String |
prefabFilename |
|
Returns
Type |
Description |
IEnumerator |
|
Declaration
public IEnumerator RotateButton(string prefabFilename)
Parameters
Type |
Name |
Description |
String |
prefabFilename |
|
Returns
Type |
Description |
IEnumerator |
|
Declaration
public IEnumerator ScaleLocalDistances(string prefabFilename)
Parameters
Type |
Name |
Description |
String |
prefabFilename |
|
Returns
Type |
Description |
IEnumerator |
|
Declaration
public IEnumerator ScaleWorldDistances(string prefabFilename)
Parameters
Type |
Name |
Description |
String |
prefabFilename |
|
Returns
Type |
Description |
IEnumerator |
|
Declaration
public IEnumerator SwitchWorldToLocalDistanceMode(string prefabFilename)
Parameters
Type |
Name |
Description |
String |
prefabFilename |
|
Returns
Type |
Description |
IEnumerator |
|
Declaration
public IEnumerator TestParentZeroScale(string prefabFilename)
Parameters
Type |
Name |
Description |
String |
prefabFilename |
|
Returns
Type |
Description |
IEnumerator |
|
This test verifies that buttons will trigger with far interaction
Declaration
public IEnumerator TriggerButtonFarInteraction(string prefabFilename)
Parameters
Type |
Name |
Description |
String |
prefabFilename |
|
Returns
Type |
Description |
IEnumerator |
|
This test verifies that buttons will trigger with motion controller far interaction
Declaration
public IEnumerator TriggerButtonFarInteractionWithMotionController(string prefabFilename)
Parameters
Type |
Name |
Description |
String |
prefabFilename |
|
Returns
Type |
Description |
IEnumerator |
|
Implements
IPrebuildSetup