2019-10-14 21:07:22 -04:00
---
id: unityatoms.mobile
title: UnityAtoms.Mobile
hide_title: true
sidebar_label: UnityAtoms.Mobile
---
# Namespace - `UnityAtoms.Mobile`
## `TouchUserInputAction`
Action of type `TouchUserInput` . Inherits from `AtomAction<TouchUserInput>` .
---
2019-10-15 13:19:44 -04:00
2019-10-14 21:07:22 -04:00
## `TouchUserInputTouchUserInputAction`
Action x 2 of type `TouchUserInput` . Inherits from `AtomAction<TouchUserInput, TouchUserInput>` .
---
2019-10-15 13:19:44 -04:00
2019-10-14 21:07:22 -04:00
## `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.
---
2019-10-15 13:19:44 -04:00
2019-10-14 21:07:22 -04:00
## `SetTouchUserInputVariableValue`
Set variable value Action of type `TouchUserInput` . Inherits from `SetVariableValue<TouchUserInput, TouchUserInputVariable, TouchUserInputReference, TouchUserInputEvent, TouchUserInputTouchUserInputEvent>` .
---
2019-10-15 13:19:44 -04:00
2019-10-14 21:07:22 -04:00
## `TouchUserInputConstant`
Constant of type `TouchUserInput` . Inherits from `AtomBaseVariable<TouchUserInput>` .
---
2019-10-15 13:19:44 -04:00
2019-10-14 21:07:22 -04:00
## `TouchUserInputEvent`
Event of type `TouchUserInput` . Inherits from `AtomEvent<TouchUserInput>` .
---
2019-10-15 13:19:44 -04:00
2019-10-14 21:07:22 -04:00
## `TouchUserInputTouchUserInputEvent`
Event x 2 of type `TouchUserInput` . Inherits from `AtomEvent<TouchUserInput, TouchUserInput>` .
---
2019-10-15 13:19:44 -04:00
2019-10-14 21:07:22 -04:00
## `TouchUserInputListener`
Listener of type `TouchUserInput` . Inherits from `AtomListener<TouchUserInput, TouchUserInputAction, TouchUserInputEvent, TouchUserInputUnityEvent>` .
---
2019-10-15 13:19:44 -04:00
2019-10-14 21:07:22 -04:00
## `TouchUserInputTouchUserInputListener`
Listener x 2 of type `TouchUserInput` . Inherits from `AtomListener<TouchUserInput, TouchUserInput, TouchUserInputTouchUserInputAction, TouchUserInputTouchUserInputEvent, TouchUserInputTouchUserInputUnityEvent>` .
---
2019-10-15 13:19:44 -04:00
2019-10-14 21:07:22 -04:00
## `TouchUserInputList`
List of type `TouchUserInput` . Inherits from `AtomList<TouchUserInput, TouchUserInputEvent>` .
---
2019-10-15 13:19:44 -04:00
2019-10-14 21:07:22 -04:00
## `TouchUserInputReference`
Reference of type `TouchUserInput` . Inherits from `AtomReference<TouchUserInput, TouchUserInputVariable>` .
---
2019-10-15 13:19:44 -04:00
2019-10-14 21:07:22 -04:00
## `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.
---
2019-10-15 13:19:44 -04:00
2019-10-14 21:07:22 -04:00
#### `InputWorldPosLastFrame`
The input position in world space from last frame.
---
2019-10-15 13:19:44 -04:00
2019-10-14 21:07:22 -04:00
#### `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.
---
2019-10-15 13:19:44 -04:00
2019-10-14 21:07:22 -04:00
#### `Equals(UnityAtoms.Mobile.TouchUserInput)`
Determine if 2 `TouchUserInput` are equal.
##### Parameters
- `other` - The other `TouchUserInput` to compare with.
##### Returns
`true` if equal, otherwise `false` .
---
2019-10-15 13:19:44 -04:00
2019-10-14 21:07:22 -04:00
#### `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` .
---
2019-10-15 13:19:44 -04:00
2019-10-14 21:07:22 -04:00
#### `GetHashCode`
`GetHashCode()` in order to implement `IEquatable<TouchUserInput>`
##### Returns
An unique hashcode for the current value.
---
2019-10-15 13:19:44 -04:00
2019-10-14 21:07:22 -04:00
#### `op_Equality(UnityAtoms.Mobile.TouchUserInput,UnityAtoms.Mobile.TouchUserInput)`
Equality operator
##### Parameters
- `touch1` - First `TouchUserInput` .
- `touch2` - Other `TouchUserInput` .
##### Returns
`true` if equal, otherwise `false` .
---
2019-10-15 13:19:44 -04:00
2019-10-14 21:07:22 -04:00
#### `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` .
---
2019-10-15 13:19:44 -04:00
2019-10-14 21:07:22 -04:00
## `TouchUserInput.State`
Enum for different touch user input states.
---
2019-10-15 13:19:44 -04:00
2019-10-14 21:07:22 -04:00
## `TouchUserInputTouchUserInputUnityEvent`
2019-10-15 16:21:56 -04:00
None generic Unity Event x 2 of type `TouchUserInput` . Inherits from `UnityEvent<TouchUserInput, TouchUserInput>` .
2019-10-14 21:07:22 -04:00
---
2019-10-15 13:19:44 -04:00
2019-10-14 21:07:22 -04:00
## `TouchUserInputUnityEvent`
2019-10-15 16:21:56 -04:00
None generic Unity Event of type `TouchUserInput` . Inherits from `UnityEvent<TouchUserInput>` .
2019-10-14 21:07:22 -04:00
---
2019-10-15 13:19:44 -04:00
2019-10-14 21:07:22 -04:00
## `TouchUserInputVariable`
Variable of type `TouchUserInput` . Inherits from `EquatableAtomVariable<TouchUserInput, TouchUserInputEvent, TouchUserInputTouchUserInputEvent>` .
---