Interface IHasInputActionReferences
Namespace: AppMana.ComponentModel
Used by
public interface IHasInputActionReferences
Remarks
When using input actions, any .performed += and .canceled += handlers should be declared on the input
actions asset actions retrieved from RemotePlayableConfiguration.actions asset property in a Start or later;
all InputActionReference fields and properties should be declared in implementations of
IHasInputActionReferences. AppMana replaces the input action map in RemotePlayableConfiguration.Awake, and
undeclared input action references will not be enabled for streaming.
As an alternative, use
public class MyScript : MonoBehaviour, IHasInputActionReferences
{
public InputActionReference someAction1;
public InputActionReference someAction2;
public IHasInputActionReferences.InputActionReferenceProperty[] inputActionReferenceProperties
{
get
{
return new[]
{
new IHasInputActionReferences.InputActionReferenceProperty(
() => someAction1,
value => someAction1 = value),
new(
() => someAction2,
value => someAction2 = value)
};
}
}
}
Properties
inputActionReferenceProperties
Returns an array of input action reference fields or properties on this object.
IHasInputActionReferences.InputActionReferenceProperty[] inputActionReferenceProperties { get; }
Property Value
IHasInputActionReferences.InputActionReferenceProperty[]
