Class InputModifierMetadataUtil
Reads how many modifier keys a composite binding requires.
Inherited Members
Namespace: Scylla.Input
Assembly: ScyllaInput.dll
Syntax
public static class InputModifierMetadataUtil
Remarks
Shared so the live action wrappers and the conflict engine's snapshot builder agree by construction. Two copies of this would be two answers to "are these two bindings at the same modifier depth", and that question decides whether a conflict is reported.
Fields
COMPOSITE_BUTTON_WITH_ONE_MODIFIER
Unity's composite type name for a button gated behind one modifier key.
Declaration
public const string COMPOSITE_BUTTON_WITH_ONE_MODIFIER = "ButtonWithOneModifier"
Field Value
| Type | Description |
|---|---|
| string |
COMPOSITE_BUTTON_WITH_TWO_MODIFIERS
Unity's composite type name for a button gated behind two modifier keys.
Declaration
public const string COMPOSITE_BUTTON_WITH_TWO_MODIFIERS = "ButtonWithTwoModifiers"
Field Value
| Type | Description |
|---|---|
| string |
Methods
ComputeDepthFromCompositePath(string)
Returns how many modifier keys a composite container's path implies.
Declaration
public static int ComputeDepthFromCompositePath(string compositePath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | compositePath | The composite container's path. |
Returns
| Type | Description |
|---|---|
| int |
|
Remarks
Two modifiers is tested first because Unity's one-modifier name is not a substring of its two-modifier name, but the reverse ordering would still be fragile if a future composite type nested the names.