API

Assembly: Spark.Inputs Interface: IInputPlugin Implementation: InputPlugin

Interface

public interface IInputPlugin
{
    InputEntry GetInputEntry(string id);
    InputEntry[] GetAllInputEntries();
    bool HasInputEntry(string id);
}

Methods

GetInputEntry

InputEntry GetInputEntry(string id)

Returns the input entry with the given ID, or null if not found.

GetAllInputEntries

InputEntry[] GetAllInputEntries()

Returns all input entries in the database.

HasInputEntry

Returns true if an input entry with the given ID exists.

InputEntry

Extends SparkDatabaseEntry. Wraps a Unity Input System action reference.

Field
Type
Description

inputAction

InputActionReference

Reference to an Input System action

Methods:

The entry auto-populates its entryName and displayName from the referenced action's name.

Initialization

On startup, the Inputs plugin automatically enables all InputActionAsset objects referenced by registered InputEntry entries. This ensures input actions are active without manual setup.

Usage

Last updated

Was this helpful?