mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-30 11:52:51 -05:00
288 lines
6.4 KiB
Markdown
288 lines
6.4 KiB
Markdown
---
|
|
id: unityatoms.mobile
|
|
title: UnityAtoms.Mobile
|
|
hide_title: true
|
|
sidebar_label: UnityAtoms.Mobile
|
|
---
|
|
|
|
# Namespace - `UnityAtoms.Mobile`
|
|
|
|
## `TouchUserInputPairEventReferenceListener`
|
|
|
|
Event Reference Listener of type `TouchUserInputPair`. Inherits from `AtomEventReferenceListener<TouchUserInputPair, TouchUserInputPairAction, TouchUserInputPairEvent, TouchUserInputPairEventReference, TouchUserInputPairUnityEvent>`.
|
|
|
|
---
|
|
|
|
## `TouchUserInputEventReferenceListener`
|
|
|
|
Event Reference Listener of type `TouchUserInput`. Inherits from `AtomEventReferenceListener<TouchUserInput, TouchUserInputAction, TouchUserInputEvent, TouchUserInputEventReference, TouchUserInputUnityEvent>`.
|
|
|
|
---
|
|
|
|
## `TouchUserInput`
|
|
|
|
Module class holding data for touch user input.
|
|
|
|
### Variables
|
|
|
|
#### `InputState`
|
|
|
|
Current input state.
|
|
|
|
---
|
|
|
|
#### `InputPos`
|
|
|
|
Current input position.
|
|
|
|
---
|
|
|
|
#### `InputPosLastFrame`
|
|
|
|
Input position last frame.
|
|
|
|
---
|
|
|
|
#### `InputPosLastDown`
|
|
|
|
Input position last time the user pressed down.
|
|
|
|
### Properties
|
|
|
|
#### `InputWorldPos`
|
|
|
|
The input position in world space.
|
|
|
|
---
|
|
|
|
#### `InputWorldPosLastFrame`
|
|
|
|
The input position in world space from last frame.
|
|
|
|
---
|
|
|
|
#### `InputWorldPosLastDown`
|
|
|
|
Input position last time the user pressed down in world space.
|
|
|
|
### Methods
|
|
|
|
#### `#ctor(UnityAtoms.Mobile.TouchUserInput.State,UnityEngine.Vector2,UnityEngine.Vector2,UnityEngine.Vector2)`
|
|
|
|
Create a `TouchUserInput` class.
|
|
|
|
##### Parameters
|
|
|
|
- `inputState` - Initial input state.
|
|
- `inputPos` - Initial input position.
|
|
- `inputPosLastFrame` - Initial input position last frame.
|
|
- `inputPosLastDown` - Initial input position last time the user pressed down.
|
|
|
|
---
|
|
|
|
#### `Equals(UnityAtoms.Mobile.TouchUserInput)`
|
|
|
|
Determine if 2 `TouchUserInput` are equal.
|
|
|
|
##### Parameters
|
|
|
|
- `other` - The other `TouchUserInput` to compare with.
|
|
|
|
##### Returns
|
|
|
|
`true` if equal, otherwise `false`.
|
|
|
|
---
|
|
|
|
#### `Equals(System.Object)`
|
|
|
|
Determine if 2 `TouchUserInput` are equal comparing against another `object`.
|
|
|
|
##### Parameters
|
|
|
|
- `obj` - The other `object` to compare with.
|
|
|
|
##### Returns
|
|
|
|
`true` if equal, otherwise `false`.
|
|
|
|
---
|
|
|
|
#### `GetHashCode`
|
|
|
|
`GetHashCode()` in order to implement `IEquatable<TouchUserInput>`
|
|
|
|
##### Returns
|
|
|
|
An unique hashcode for the current value.
|
|
|
|
---
|
|
|
|
#### `op_Equality(UnityAtoms.Mobile.TouchUserInput,UnityAtoms.Mobile.TouchUserInput)`
|
|
|
|
Equality operator
|
|
|
|
##### Parameters
|
|
|
|
- `touch1` - First `TouchUserInput`.
|
|
- `touch2` - Other `TouchUserInput`.
|
|
|
|
##### Returns
|
|
|
|
`true` if equal, otherwise `false`.
|
|
|
|
---
|
|
|
|
#### `op_Inequality(UnityAtoms.Mobile.TouchUserInput,UnityAtoms.Mobile.TouchUserInput)`
|
|
|
|
Inequality operator
|
|
|
|
##### Parameters
|
|
|
|
- `touch1` - First `TouchUserInput`.
|
|
- `touch2` - Other `TouchUserInput`.
|
|
|
|
##### Returns
|
|
|
|
`true` if they are not equal, otherwise `false`.
|
|
|
|
---
|
|
|
|
## `TouchUserInput.State`
|
|
|
|
Enum for different touch user input states.
|
|
|
|
---
|
|
|
|
## `TouchUserInputReference`
|
|
|
|
Reference of type `TouchUserInput`. Inherits from `EquatableAtomReference<TouchUserInput, TouchUserInputPair, TouchUserInputConstant, TouchUserInputVariable, TouchUserInputEvent, TouchUserInputPairEvent, TouchUserInputTouchUserInputFunction, TouchUserInputVariableInstancer>`.
|
|
|
|
---
|
|
|
|
## `TouchUserInputPair`
|
|
|
|
IPair of type `<TouchUserInput>`. Inherits from `IPair<TouchUserInput>`.
|
|
|
|
---
|
|
|
|
## `TouchUserInputPairUnityEvent`
|
|
|
|
None generic Unity Event of type `TouchUserInputPair`. Inherits from `UnityEvent<TouchUserInputPair>`.
|
|
|
|
---
|
|
|
|
## `TouchUserInputUnityEvent`
|
|
|
|
None generic Unity Event of type `TouchUserInput`. Inherits from `UnityEvent<TouchUserInput>`.
|
|
|
|
---
|
|
|
|
## `TouchUserInputTouchUserInputUnityEvent`
|
|
|
|
None generic Unity Event x 2 of type `TouchUserInput`. Inherits from `UnityEvent<TouchUserInput, TouchUserInput>`.
|
|
|
|
---
|
|
|
|
## `TouchUserInputConstant`
|
|
|
|
Constant of type `TouchUserInput`. Inherits from `AtomBaseVariable<TouchUserInput>`.
|
|
|
|
---
|
|
|
|
## `TouchUserInputEventReference`
|
|
|
|
Event Reference of type `TouchUserInput`. Inherits from `AtomEventReference<TouchUserInput, TouchUserInputVariable, TouchUserInputEvent, TouchUserInputVariableInstancer, TouchUserInputEventInstancer>`.
|
|
|
|
---
|
|
|
|
## `TouchUserInputPairEventReference`
|
|
|
|
Event Reference of type `TouchUserInputPair`. Inherits from `AtomEventReference<TouchUserInputPair, TouchUserInputVariable, TouchUserInputPairEvent, TouchUserInputVariableInstancer, TouchUserInputPairEventInstancer>`.
|
|
|
|
---
|
|
|
|
## `TouchUserInputVariableInstancer`
|
|
|
|
Variable Instancer of type `TouchUserInput`. Inherits from `AtomVariableInstancer<TouchUserInputVariable, TouchUserInputPair, TouchUserInput, TouchUserInputEvent, TouchUserInputPairEvent, TouchUserInputTouchUserInputFunction>`.
|
|
|
|
---
|
|
|
|
## `TouchUserInputPairEventInstancer`
|
|
|
|
Event Instancer of type `TouchUserInputPair`. Inherits from `AtomEventInstancer<TouchUserInputPair, TouchUserInputPairEvent>`.
|
|
|
|
---
|
|
|
|
## `TouchUserInputEventInstancer`
|
|
|
|
Event Instancer of type `TouchUserInput`. Inherits from `AtomEventInstancer<TouchUserInput, TouchUserInputEvent>`.
|
|
|
|
---
|
|
|
|
## `TouchUserInputVariable`
|
|
|
|
Variable of type `TouchUserInput`. Inherits from `EquatableAtomVariable<TouchUserInput, TouchUserInputPair, TouchUserInputEvent, TouchUserInputPairEvent, TouchUserInputTouchUserInputFunction>`.
|
|
|
|
---
|
|
|
|
## `TouchUserInputPairAction`
|
|
|
|
Action of type `TouchUserInputPair`. Inherits from `AtomAction<TouchUserInputPair>`.
|
|
|
|
---
|
|
|
|
## `UpdateTouchUserInput`
|
|
|
|
Updates the `TouchUserInputVariable` on every Update tick. Meant to be called every Update.
|
|
|
|
### Variables
|
|
|
|
#### `TouchUserInputVariable`
|
|
|
|
The `TouchUserInputVariable` to update.
|
|
|
|
### Methods
|
|
|
|
#### `Do`
|
|
|
|
Update the `TouchUserInputVariable`.abstract Call this on every Update tick.
|
|
|
|
---
|
|
|
|
## `TouchUserInputAction`
|
|
|
|
Action of type `TouchUserInput`. Inherits from `AtomAction<TouchUserInput>`.
|
|
|
|
---
|
|
|
|
## `TouchUserInputTouchUserInputFunction`
|
|
|
|
Function x 2 of type `TouchUserInput`. Inherits from `AtomFunction<TouchUserInput, TouchUserInput>`.
|
|
|
|
---
|
|
|
|
## `TouchUserInputPairEvent`
|
|
|
|
Event of type `TouchUserInputPair`. Inherits from `AtomEvent<TouchUserInputPair>`.
|
|
|
|
---
|
|
|
|
## `TouchUserInputEvent`
|
|
|
|
Event of type `TouchUserInput`. Inherits from `AtomEvent<TouchUserInput>`.
|
|
|
|
---
|
|
|
|
## `TouchUserInputValueList`
|
|
|
|
Value List of type `TouchUserInput`. Inherits from `AtomValueList<TouchUserInput, TouchUserInputEvent>`.
|
|
|
|
---
|
|
|
|
## `SetTouchUserInputVariableValue`
|
|
|
|
Set variable value Action of type `TouchUserInput`. Inherits from `SetVariableValue<TouchUserInput, TouchUserInputPair, TouchUserInputVariable, TouchUserInputConstant, TouchUserInputReference, TouchUserInputEvent, TouchUserInputPairEvent, TouchUserInputVariableInstancer>`.
|
|
|
|
---
|