Click or drag to resize

PlayerControllerButton Class

A Button that uses Player Actions as the value source.
Inheritance Hierarchy
SystemObject
  RewiredPlayerControllerElement
    RewiredPlayerControllerElementWithSource
      RewiredPlayerControllerButton

Namespace:  Rewired
Assembly:  Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public sealed class Button : PlayerControllerElementWithSource

The PlayerControllerButton type exposes the following members.

Properties
  NameDescription
Public propertyactionId
The Action id of the Action which will be used as the input source for the Element.
(Inherited from PlayerControllerElementWithSource.)
Public propertyactionName
The Action name of the Action which will be used as the input source for the Element.
(Inherited from PlayerControllerElementWithSource.)
Public propertyenabled
Is this element enabled? Disabled elements return no value.
(Inherited from PlayerControllerElement.)
Public propertyjustPressed
Returns True only on the first frame the button was pressed.
Public propertyjustReleased
Returns True only on the first frame the button was released.
Public propertyname
The name of the element.
(Inherited from PlayerControllerElement.)
Public propertyvalue
The current value.
Public propertyvaluePrev
The value in the previous frame.
Top
See Also