Class Vector3Control
  A floating-point 3D vector control composed of three AxisControls.
 
  
  
    Inheritance
    
    
    
    Vector3Control
   
  
  
  Assembly: Unity.InputSystem.dll
  
  
    public class Vector3Control : InputControl<Vector3>
   
  Constructors
  
  
  
  
  Declaration
  
  Properties
  
  
  
  
  Declaration
  
    public AxisControl x { get; set; }
   
  Property Value
  
  
  
  
  
  Declaration
  
    public AxisControl y { get; set; }
   
  Property Value
  
  
  
  
  
  Declaration
  
    public AxisControl z { get; set; }
   
  Property Value
  
  Methods
  
  
  Calculates and returns a optimized data type that can represent a control's value in memory directly.
The value then is cached in optimizedControlDataType.
This method is for internal use only, you should not call this from your own code.
 
  
  Declaration
  
    protected override FourCC CalculateOptimizedControlDataType()
   
  Returns
  
  Overrides
  
  
  
  Compute an absolute, normalized magnitude value that indicates the extent to which the control
is actuated in the given state.
 
  
  Declaration
  
    public override float EvaluateMagnitude(void* statePtr)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | void* | 
        statePtr | 
        State containing the control's stateBlock. 
 | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | float | 
        Amount of actuation of the control or -1 if it cannot be determined. 
 | 
      
    
  
  Overrides
  
  
  
  
  
  Perform final initialization tasks after the control hierarchy has been put into place.
 
  
  Declaration
  
    protected override void FinishSetup()
   
  Overrides
  
  
  
  
  
  
  
  Declaration
  
    public override Vector3 ReadUnprocessedValueFromState(void* statePtr)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | void* | 
        statePtr | 
         | 
      
    
  
  Returns
  
  Overrides
  
  
  
  
  
  Declaration
  
    public override void WriteValueIntoState(Vector3 value, void* statePtr)
   
  Parameters
  
  Overrides
  
  Extension Methods