An ongoing rebinding operation.
Inheritance
System.Object
InputActionRebindingExtensions.RebindingOperation
public class RebindingOperation : IDisposable
Fields
Declaration
public const float kDefaultMagnitudeThreshold = 0.2F
Field Value
Type |
Description |
System.Single |
|
Properties
The action that rebinding is being performed on.
Declaration
public InputAction action { get; }
Property Value
Optional mask to determine which bindings to apply overrides to.
Declaration
public InputBinding? bindingMask { get; }
Property Value
Declaration
public bool cancelled { get; }
Property Value
Type |
Description |
System.Boolean |
|
Controls that had input and were deemed potential matches to rebind to.
Declaration
public InputControlList<InputControl> candidates { get; }
Property Value
Declaration
public bool completed { get; }
Property Value
Type |
Description |
System.Boolean |
|
The matching score for each control in candidates.
Declaration
public ReadWriteArray<float> scores { get; }
Property Value
Type |
Description |
ReadWriteArray<System.Single> |
|
Declaration
public InputControl selectedControl { get; }
Property Value
Declaration
public bool started { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
Declaration
public void AddCandidate(InputControl control, float score)
Parameters
Type |
Name |
Description |
InputControl |
control |
|
System.Single |
score |
|
Declaration
Manually complete the rebinding operation.
Declaration
Declaration
Declaration
protected void Finalize()
Declaration
public InputActionRebindingExtensions.RebindingOperation OnApplyBinding(Action<InputActionRebindingExtensions.RebindingOperation, string> callback)
Parameters
Returns
Declaration
public InputActionRebindingExtensions.RebindingOperation OnCancel(Action<InputActionRebindingExtensions.RebindingOperation> callback)
Parameters
Returns
Declaration
public InputActionRebindingExtensions.RebindingOperation OnComplete(Action<InputActionRebindingExtensions.RebindingOperation> callback)
Parameters
Returns
Declaration
public InputActionRebindingExtensions.RebindingOperation OnComputeScore(Func<InputControl, InputEventPtr, float> callback)
Parameters
Type |
Name |
Description |
Func<InputControl, InputEventPtr, System.Single> |
callback |
|
Returns
Declaration
public InputActionRebindingExtensions.RebindingOperation OnGeneratePath(Func<InputControl, string> callback)
Parameters
Type |
Name |
Description |
Func<InputControl, System.String> |
callback |
|
Returns
Declaration
public InputActionRebindingExtensions.RebindingOperation OnMatchWaitForAnother(float seconds)
Parameters
Type |
Name |
Description |
System.Single |
seconds |
|
Returns
Declaration
public InputActionRebindingExtensions.RebindingOperation OnPotentialMatch(Action<InputActionRebindingExtensions.RebindingOperation> callback)
Parameters
Returns
Declaration
public void RemoveCandidate(InputControl control)
Parameters
Declaration
public void ResetConfiguration()
Declaration
public InputActionRebindingExtensions.RebindingOperation Start()
Returns
Declaration
public InputActionRebindingExtensions.RebindingOperation WithAction(InputAction action)
Parameters
Returns
Declaration
public InputActionRebindingExtensions.RebindingOperation WithBindingGroup(string group)
Parameters
Type |
Name |
Description |
System.String |
group |
|
Returns
Declaration
public InputActionRebindingExtensions.RebindingOperation WithBindingMask(InputBinding? bindingMask)
Parameters
Type |
Name |
Description |
System.Nullable<InputBinding> |
bindingMask |
|
Returns
Declaration
public InputActionRebindingExtensions.RebindingOperation WithCancelAction(InputAction action)
Parameters
Returns
Declaration
public InputActionRebindingExtensions.RebindingOperation WithCancellingThrough(string binding)
Parameters
Type |
Name |
Description |
System.String |
binding |
|
Returns
Declaration
public InputActionRebindingExtensions.RebindingOperation WithCancellingThrough(InputControl control)
Parameters
Returns
Declaration
public InputActionRebindingExtensions.RebindingOperation WithControlsExcluding(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Declaration
public InputActionRebindingExtensions.RebindingOperation WithControlsHavingToMatchPath(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Declaration
public InputActionRebindingExtensions.RebindingOperation WithExpectedControlLayout(string layoutName)
Parameters
Type |
Name |
Description |
System.String |
layoutName |
|
Returns
Declaration
public InputActionRebindingExtensions.RebindingOperation WithExpectedControlType(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
Declaration
public InputActionRebindingExtensions.RebindingOperation WithExpectedControlType<TControl>()where TControl : InputControl
Returns
Type Parameters
Name |
Description |
TControl |
|
Declaration
public InputActionRebindingExtensions.RebindingOperation WithMagnitudeHavingToBeGreaterThan(float magnitude)
Parameters
Type |
Name |
Description |
System.Single |
magnitude |
|
Returns
Declaration
public InputActionRebindingExtensions.RebindingOperation WithoutControlsHavingToMatchPath()
Returns
Disable the default behavior of automatically generalizing the path of a selected control.
Declaration
public InputActionRebindingExtensions.RebindingOperation WithoutGeneralizingPathOfSelectedControl()
Returns
Declaration
public InputActionRebindingExtensions.RebindingOperation WithoutIgnoringNoisyControls()
Returns
Declaration
public InputActionRebindingExtensions.RebindingOperation WithoutMagnitudeThreshold()
Returns
Declaration
public InputActionRebindingExtensions.RebindingOperation WithRebindAddingNewBinding(string group = null)
Parameters
Type |
Name |
Description |
System.String |
group |
|
Returns
Declaration
public InputActionRebindingExtensions.RebindingOperation WithRebindApplyingAsOverride()
Returns
Declaration
public InputActionRebindingExtensions.RebindingOperation WithRebindOverwritingCurrentPath()
Returns
Declaration
public InputActionRebindingExtensions.RebindingOperation WithTargetBinding(int bindingIndex)
Parameters
Type |
Name |
Description |
System.Int32 |
bindingIndex |
|
Returns
See Also