Class PressableButtonTests
  
  
  
  
    Inheritance
    
    
    PressableButtonTests
   
  
    Implements
    IPrebuildSetup
   
  
  
  Assembly: cs.temp.dll.dll
  
  
    public class PressableButtonTests : BasePlayModeTests, IPrebuildSetup
   
  Properties
  
  
  
  
  
  
  
  Declaration
  
    public static IEnumerable<string> PressableButtonsTestPrefabFilenames { get; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | IEnumerable<String> | 
         | 
      
    
  
  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 | 
         | 
      
    
  
  
  
  
  
  
  
  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 | 
         | 
      
    
  
  
  
  
  
  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 | 
         | 
      
    
  
  Implements
  
      IPrebuildSetup