Click or drag to resize

ElementAssignmentSplitAxisAssignment Method (Int32, AxisRange, Int32, Pole)

Creates a struct for use in element assignment. For assignment of a split axis.

Namespace:  Rewired
Assembly:  Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static ElementAssignment SplitAxisAssignment(
	int elementIdentifierId,
	AxisRange axisRange,
	int actionId,
	Pole axisContribution
)

Parameters

elementIdentifierId
Type: SystemInt32
The element identifier id the Action will be bound to.
axisRange
Type: RewiredAxisRange
The range of the axis of this assignment. Use Positive or Negative to assign a split axis or Full for a single unified axis assignment.
actionId
Type: SystemInt32
The id of the Action that will be bound to the controller element.
axisContribution
Type: RewiredPole
Does this Action contribute positive or negative values to the final Action's input value? Used for split axis and button/key assignments.

Return Value

Type: ElementAssignment
ElementAssignment
See Also